Can role definitions be nested? That is:
role A {
role subRole1 {...};
role subRole2 {...};
...
};
As I see it, this ought to be equivelent to
role A::subRole1 {...};
role A::subRole2 {...};
role A {
does A::subRole1; does A::subRole2;
...
};
The advantage of doing things this way is that you'd be able cluster
related attributes and methods together within a role (or within a class,
for that matter) - clusters which make sense within the main role, but
probably don't have enough importance to be created as "standalone" roles.
=====
Jonathan "Dataweaver" Lang
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash