SPVM::Int − An int value as An Object =head1 Description
Int class in SPVM represents an int value as an object.
my $int_object =
Int−>new(5);
my $int_value = $int_object−>value;
This class is immutable.
This class is automatically loaded.
|
• |
Stringable |
"has value : ro int;"
The value.
"static method new : Int ($value : int);"
Creates a new Int object with a "int" $value.
"method to_string : string ();"
Casts the value to string type and returns it.
Copyright (c) 2023 Yuki Kimoto
MIT License