Luke Palmer
Wed, 27 Jul 2005 07:15:06 -0700
On 7/27/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
> Luke Palmer wrote:
> > role Complex
> > does Object
> > contains Num
> > {...}
>
> I've probably misunderstood you, but...:
>
> role Complex does Object {...}
> Num does Complex;
> # That should work and DWYM, right?
Supposing that you can actually do that, and that "Num does Complex" gets executed at compile time. I didn't know you could add "does" declarations to classes referring to other classes (rather than making the class object do a metaclass role... though I admit that that would only be warranted by a pretty bizarre situation).