Role composition and BUILD {}

2010-11-16 Thread Evan Carroll
Because a role doesn't have a BUILD people often write `around 'BUILD' = sub {}`. If this is to continue, should BUILD be special cased such that a role wrapping it can still fire code if it isn't present in the composing class? Should the role install BUILD if it isn't present, like an

Re: Role composition and BUILD {}

2010-11-16 Thread Jesse Luehrs
On Tue, Nov 16, 2010 at 11:32:55AM -0600, Evan Carroll wrote: Because a role doesn't have a BUILD people often write `around 'BUILD' = sub {}`. If this is to continue, should BUILD be special cased such that a role wrapping it can still fire code if it isn't present in the composing class?

Re: Role composition and BUILD {}

2010-11-16 Thread Thomas Klausner
Hi! On Tue, Nov 16, 2010 at 11:32:55AM -0600, Evan Carroll wrote: Because a role doesn't have a BUILD people often write `around 'BUILD' = sub {}`. If this is to continue, should BUILD be special cased such that a role wrapping it can still fire code if it isn't present in the composing

Re: Role composition and BUILD {}

2010-11-16 Thread Evan Carroll
11:14 @mst sub BUILD {} after BUILD = sub { Amusing... sub BUILD {'amusing hack'}; after 'BUILD' = sub {} it is. -- Evan Carroll - e...@dealermade.com System Lord of the Internets - Dealermade web: http://www.dealermade.com ph: 888.403.9143