Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
No such thing as a small change
 
PerlMonks  

Re: Lets talk Moose

by stvn (Monsignor)
on Aug 11, 2006 at 20:13 UTC ( #566937=note: print w/ replies, xml ) Need Help??


in reply to Lets talk Moose

EvanCarroll

Your problem is now solved by Moose::Policy, here is a quick example:

package Point; use Moose::Policy 'Moose::Policy::FollowPBP'; use Moose; has 'x' => (is => 'rw', isa => 'Int'); has 'y' => (is => 'rw', isa => 'Int');
Now Point has get_x, get_y, set_x and set_y methods generated for it's accessors.

You can find a use.perl post here with some more details.

-stvn


Comment on Re: Lets talk Moose
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-04-17 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (443 votes), past polls