Name

SPVM::Int - Int object

Usage

use Int;

my $int_object = Int->new(5);
my $int_value = $int_object->value;

Description

Int object stores a int value.

This object is immutable and its value cannot be changed.

Int is automatically loaded just after the program starts.

Fields

value

has value : ro int;

The value.

Class Methods

new

static method new : Int ($value : int)

Create a new Int object with a int value.