perl6/doc/lib/X/Constructor/Positional

doc src
(title) class X::Constructor::Positional
    class X::Constructor::Positional is Exception { }

 
Thrown from L<Mu.new> when positional arguments are passed to it. For example
    class A { }
    A.new(2, 3)

 
dies with
    Default constructor only takes named arguments

 

Perl 6 Tricks and Treats newsletter

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