On Fri, 2004-04-30 at 23:12, Austin Hastings wrote: > > From: Aaron Sherman [mailto:[EMAIL PROTECTED]
> > I think you want a combination of re-dispatch and delegation: [...example code...] > > That should do what you want. > > Well, not really: > > 1- It required a lot of text for little gain. Oh, I would never DO that, I was just complying with what you asked for. I would have just called the methods on the encapsulated objects, which you did not like. > 2- Most of the required text was redundant. Not really. I defined each of the methods you wanted once in the role and then re-dispatched them manually in the message and error classes. You should be able to override dispatch in those classes and remove the extra definition of each method. I just didn't have a handle on the re-dispatch part. But, you didn't say you wanted golf, you said you wanted a solution that avoided "$obj.message.clear", which is what I gave you. You do not need parameterized roles of any sort for the solution. -- Aaron Sherman <[EMAIL PROTECTED]> Senior Systems Engineer and Toolsmith "It's the sound of a satellite saying, 'get me down!'" -Shriekback
signature.asc
Description: This is a digitally signed message part