perl6/doc/lib/X/Syntax/Self/WithoutObject

doc src
(title) class X::Syntax::Self::WithoutObject
    class X::Syntax::Self::WithoutObject does X::Syntax { }

 
Syntax error thrown when self is referenced in a place where no invocant is available. For example
    self

 
in the mainline dies with
    ===SORRY!===
    'self' used where no object is available

 

Perl 6 Tricks and Treats newsletter

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