Camelia

class X::Anon::Multi

src
    class X::Anon::Multi does X::Comp { }

 
Compile time error thrown when an anonymous multi is being declared. For example
    multi method () { }

 
dies with
    ===SORRY!===
    Cannot put multi on anonymous method

 

Methods

multiness

    method multiness() returns Str:D

 
Returns a string describing the multiness that the original code used, for example "multi" or "proto" .

routine-type

    method routine-type() returns Str:D

 
Returns a string describing the type of routine that was declared, for example "sub" or "method" .

Perl 6 Tricks and Treats newsletter

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