Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Creating a Moose object and serializing it

by mojotoad (Monsignor)
on Oct 23, 2010 at 06:09 UTC ( [id://866931]=note: print w/replies, xml ) Need Help??


in reply to Creating a Moose object and serializing it

Smells like you're actually after a caching mechanism for is_circular().

How often is circularity likely to change? Maybe you need something like has_been_circular().

If it doesn't change, then just provide separate objects for circles and lines. What is it you're trying to do, anyway?

Cheers,
Matt

Replies are listed 'Best First'.
Re^2: Creating a Moose object and serializing it
by daverave (Scribe) on Oct 23, 2010 at 07:31 UTC
    Circularity never changes. I'm taking a look at `Moose::Manual::Roles` and `MooseX::AbstractFactory` to see if I can perhaps create a single interface with two implementations (sorry for the Java terms).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://866931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found