In X::Cannot::Empty§
See primary documentation in context for method what
method what()
Returns the type that was the target of the action.
In X::Syntax::Malformed§
See primary documentation in context for method what
method what(X::Syntax::Malformed: --> Str)
Returns a description of the thing that was being parsed.
In X::Cannot::Lazy§
See primary documentation in context for method what
method what()
Returns the type that was the target of the action, if it was not the lazy list itself.
In X::Syntax::Missing§
See primary documentation in context for method what
method what(--> Str)
Returns a string description of the missing syntax element.
In X::Syntax::Variable::Numeric§
See primary documentation in context for method what
method what returns Str
Returns a verbal description of the kind of symbol that was declared (variable, parameter, attribute).
In IO::Special§
See primary documentation in context for method what
say .path.what; # OUTPUT: «<STDIN>»say .path.what; # OUTPUT: «<STDOUT>»say .path.what; # OUTPUT: «<STDERR>»
Returns one of the strings '<STDIN>'
, '<STDOUT>'
, or '<STDERR>'
, specifying the type of the special IO device.
In X::Redeclaration§
See primary documentation in context for method what
Returns the kind of symbol that was redeclared. Usually symbol
, but can also be routine
, type
etc.
In X::Undeclared§
See primary documentation in context for method what
Returns the kind of symbol that was not declared (for example variable, type, routine).
Since The symbol wasn't declared, the compiler sometimes has to guess (or rather disambiguate) what kind of symbol it encounter that wasn't declared. For example if you write
say a;
Then the disambiguation defaults to reporting a missing subroutine, even though declaring a constant a = 'a'
would also make the error go away.
In X::OutOfRange§
See primary documentation in context for method what
method what(--> Str)
Verbal description of the thing that was out of range (e.g. "array index"
, "month"
).