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 - Short object

SYNOPSYS

  use SPVM::Short;
  
  my $short_object = SPVM::Short->new(5);
  my $short_value = $short_object->val;

DESCRIPTION

SPVM::Short object stores a short value.

This object is immutable.

STATIC METHODS

new

  sub new : SPVM::Short ($value : short)

Create a new SPVM::Short object with specific short value.

INSTANCE METHODS

val

  sub val : short ($self : self)

Get a short value.