Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 cooling their heels in the Monastery: (4)
As of 2014-09-17 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (68 votes), past polls