Name

SPVM::Long - A long value as An Object

Description

Long class in SPVM represents a long value as an object.

Usage

my $long_object = Long->new(5);
my $long_value = $long_object->value;

Details

This class is immutable.

This class is automatically loaded.

Interfaces

Fields

value

has value : ro long;

The value.

Class Methods

new

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

Creates a new Long object with a long $value.

Instance Methods

to_string

method to_string : string ();

Casts the value to string type and returns it.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License