perl6/doc/lib/X/Signature/Placeholder

doc src
(title) class X::Signature::Placeholder
    class X::Signature::Placeholder does X::Comp

 
Compile time error thrown when a block has both an explicit signature and placeholder parameters. For example
    sub f() { $^x }

 
dies with
    ===SORRY!===
    Placeholder variable '$^x' cannot override existing signature

 

Methods

(head2) placeholder
    method placeholder() returns Str:D

 
Returns the name of a placeholder that was used in a block that already had a signature.

Perl 6 Tricks and Treats newsletter

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