class X::Syntax::Reserved

Compilation error due to use of syntax reserved for future use
class X::Syntax::Reserved does X::Syntax { }

Syntax error thrown when a syntax is used which is reserved for future expansion.

For example

my @a();

dies with

===SORRY!===
The () shape syntax in array declarations is reserved

Methods

method reserved

method reserved(--> Str:D)

Returns a text description of the reserved syntax.

method instead

method instead(--> Str)

Describes what to use instead of the reserved syntax (if anything).

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.