perl6/doc/lib/X/Syntax/Augment/Role

doc src
(title) class X::Syntax::Augment::Role
    class X::Syntax::Augment::Role does X::Syntax { }

 
Compile time error thrown when trying to agument a role. For example
    use MONKEY_TYPING;
    augment role Positional { }

 
dies with
    ===SORRY!===
    Cannot augment role Positional, since roles are immutable

 

Methods

(head2) role-name
    method role-name() returns Str:D

 
Returns the name of the role that was attempted to augment.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: