Name

SPVM::Mutable::Int - Mutable int Object

Description

The Mutable::Int class has methods to manipulate an object that has an int value.

This class is mutable.

Usage

my $int_object = Mutable::Int->new(5);
my $int_value = $int_object->value;
$int_object->set_value(10);

Fields

value

has value : rw int;

The value.

Class Methods

new

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

Creates a new Mutable::Int object with a int $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License