class X::Syntax::Variable::Numeric does X::Syntax { }

Syntax error thrown when trying to declare numeric symbols.

For example

my @101;

dies with

===SORRY!===
Cannot declare a numeric variable

Methods§

method what§

method what returns Str:D

Returns a verbal description of the kind of symbol that was declared (variable, parameter, attribute).

Typegraph§

Type relations for X::Syntax::Variable::Numeric
raku-type-graph Numeric Numeric Real Real Real->Numeric Mu Mu Any Any Any->Mu Cool Cool Cool->Any Complex Complex Complex->Numeric Complex->Cool Stringy Stringy Str Str Str->Cool Str->Stringy Allomorph Allomorph Allomorph->Str ComplexStr ComplexStr ComplexStr->Complex ComplexStr->Allomorph Int Int Int->Real Int->Cool Num Num Num->Real Num->Cool Instant Instant Instant->Real Instant->Cool Rational Rational Rational->Real Duration Duration Duration->Real Duration->Cool IntStr IntStr IntStr->Allomorph IntStr->Int int int int->Int Order Order Order->Int atomicint atomicint atomicint->Int Endian Endian Endian->Int Bool Bool Bool->Int PromiseStatus PromiseStatus PromiseStatus->Int Signal Signal Signal->Int NumStr NumStr NumStr->Allomorph NumStr->Num FatRat FatRat FatRat->Cool FatRat->Rational Rat Rat Rat->Cool Rat->Rational

Expand chart above