Name

SPVM::Short - Short object

Synopsys

use Short;

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

Description

Short object stores a short value.

This object is immutable and its value cannot be changed.

Short is automatically loaded just after the program starts.

Class Methods

new

static method new : Short ($value : short)

Create a new Short object with a short value.

Instance Methods

value

method value : short ()

Get a short value.