++ed by:
XYF HAMMER ILUX KRAUTCAT DMOL
10 non-PAUSE users
Author image Yuki Kimoto

Name

SPVM::Int - Int object

Synopsys

  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.

Class Methods

new

  static method new : Int ($value : int)

Create a new Int object with a int value.

Instance Methods

value

  method value : int ()

Get a int value.