The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::Short - A short Value as An Object

Description

The Short class in SPVM represents a short value as an object.

Usage

my $short_object = Short->new(5);
my $short_value = $short_object->value;

Details

This class is immutable.

This class is automatically loaded.

Fields

value

has value : ro short;

The value.

Class Methods

new

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

Creates a new Short object with a short $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License