Hi Frank,

On 02/24/2013 07:27 AM, Frank White wrote:
> Hi, I am new to Perl6 and I'm interested in the feature that allows you to
> add roles to classes.  From what I understand you can add a role to an
> object using the "does" keyword.  Is there any way you can remove a role or

No, you cannot remove roles.

> check to see if a role is attached to an object? 

With normal type checking:

if $obj ~~ YourRole {
    ...
}

Cheers,
Moritz

Reply via email to