perl6/doc/lib/X/Anon/Augment

doc src
(title) class X::Anon::Augment
    class X::Anon::Augment does X::Comp { }

 
Compile time error thrown when trying to augment an anonymous package. For example
    use MONKEY_TYPING;
    augment class { }

 
Dies with
    ===SORRY!===
    Cannot augment anonymous class

 

Methods

(head2) package-kind
    method package-kind returns Str:D

 
Returns the kind of package (module, class, grammar, ...) that the code tried to augment.

Perl 6 Tricks and Treats newsletter

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