The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

SPVM::Short - Short object

Usage

  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.

Fields

value

  has value : ro short;

The value.

Class Methods

new

  static method new : Short ($value : short)

Create a new Short object with a short value.