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

Name

SPVM::Byte - Byte object

Usage

  use Byte;
  
  my $byte_object = Byte->new(5);
  my $byte_value = $byte_object->value;

Description

Byte object holds a byte type value.

This object is immutable and its value cannot be changed.

Byte is automatically loaded just after the program starts.

Fields

value

  has value : ro byte;

The value.

Class Methods

new

  static method new : Byte ($value : byte)

Create a new Byte object with a byte value.