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

尝试声明数字符号时抛出语法错误。

例如

my @101;

用以下内容终止

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

方法§

方法 what§

method what returns Str:D

返回已声明符号类型的文字描述(变量、参数、属性)。

类型图§

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 Num Num Num->Real Num->Cool Instant Instant Instant->Real Instant->Cool Duration Duration Duration->Real Duration->Cool Rational Rational Rational->Real Int Int Int->Real Int->Cool NumStr NumStr NumStr->Allomorph NumStr->Num atomicint atomicint atomicint->Int Bool Bool Bool->Int IntStr IntStr IntStr->Allomorph IntStr->Int Order Order Order->Int Signal Signal Signal->Int int int int->Int Endian Endian Endian->Int PromiseStatus PromiseStatus PromiseStatus->Int FatRat FatRat FatRat->Cool FatRat->Rational Rat Rat Rat->Cool Rat->Rational

展开上面的图表