perl6/doc/lib/X/Syntax/Signature/InvocantMarker

doc src
(title) class X::Syntax::Signature::InvocantMarker
    class X::Syntax::Signature::InvocantMarker does X::Syntax { }

 
Syntax error when the invocant in a signature is anywhere else than after the first parameter. For example
    :($a, $b: $c)

 
dies with
    ===SORRY!===
    Can only use : as invocant marker in a signature after the first parameter

 
See also: L<Signature>.

Perl 6 Tricks and Treats newsletter

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