| parrotcode: methods for the Role class | |
| Contents | Language Implementations | Perl6 |

src/classes/Role.pir - methods for the Role class

This class represents a role in Perl 6. It is not substitutable for a Parrot role, nor does it subclass it. Instead, it provides a way to get at a Parrot level role through a multiple dispatch (or perhaps from a cache). You can see it as a kind of "role factory", which manufactures roles of a particular short name for a particular set of parameters.


We also add some methods to the Parrot roles.

Hey! The above document had some coding errors, which are explained below:
|
|
|