The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

SPVM::Int - An int value as An Object =head1 Description

The Int class in SPVM represents an int value as an object.

Usage

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

Details

This class is immutable.

This class is automatically loaded.

Fields

value

has value : ro int;

The value.

Class Methods

new

static method new : Int ($value : int);

Creates a new Int object with a int $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License