Name

SPVM::Mutable::Long - Mutable long Object

Description

The Mutable::Long class has methods to manipulate an object that has a long value.

This class is mutable.

Usage

my $long_object = Mutable::Long->new(5);
my $long_value = $long_object->value;
$long_object->set_value(10);

Fields

value

has value : rw long;

The value.

Class Methods

new

static method new : Mutable::Long ($value : long);

Creates a new Mutable::Long object with a long $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License