class X::Parameter::Twigil

Compilation error due to an unallowed twigil in a signature
class X::Parameter::Twigil does X::Comp { }

Thrown when a parameter in a signature has a twigil that it may not have. Only !, . and * as twigils are allowed.

Example:

sub f($=foo) { }

dies with

===SORRY!===
In signature parameter $=foo, it is illegal to use the = twigil

Methods

method parameter

The name of the offensive parameter ($=foo in the example above)

method twigil

The illegally used twigil.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.