Re: Roles trying to be nice

2004-09-06 Thread Jonathan Scott Duff
On Mon, Aug 30, 2004 at 12:17:57PM -0500, Abhijit Mahabal wrote: Another example to clarify what I am getting at: Role Log2File [: $filename] { method do_the_logging {...}; ... } Role Log2Email [: $address ] { method do_the_logging {...}; ... } Role Log2Tk[: $widget ] { method

Roles trying to be nice

2004-08-29 Thread Abhijit Mahabal
Traits can be mean, but roles are guarenteed(=forced?) to play nice. But suppose I have a role that wants to play nicer, by ensuring that incorporating it in some class actually makes sense. For example, it may want to ensure that the class has $.foo. (*) I have a few questions: 1: Can this be

Re: Roles trying to be nice

2004-08-29 Thread Luke Palmer
Abhijit Mahabal writes: Traits can be mean, but roles are guarenteed(=forced?) to play nice. But suppose I have a role that wants to play nicer, by ensuring that incorporating it in some class actually makes sense. For example, it may want to ensure that the class has $.foo. (*) Let me