Timothy S. Nelson wrote:
>       Another question for everyone - is there some way I can extend a class 
> in such a way that it implements another role? 


class A does B does C { ... }

where B and C are roles.

> For example, say I have a 
> class Class::A that implements role Role::A, and I want it to also implement 
> Role::B (and I provide an implementation), is there any way I can make it so 
> that *every* instance of Class::A implements Role::B, while doing this from a 
> module that doesn't contain Role::B?

Well, the Role::B must be visible in your scope where you do the
composition.

Or is your question much more complicated than that, and I am simply to
dumb to grasp it?

Cheers,
Moritz

-- 
Moritz Lenz
http://perlgeek.de/ |  http://perl-6.de/ | http://sudokugarden.de/

Reply via email to