NAME

SPVM::Bool - Bool in SPVM | Bool object

SYNOPSYS

use Bool;

my $true = Bool->true;
my $false = Bool->false;

my $true_value = $true->value;
my $false_value = $false->value;

DESCRIPTION

Bool object stores a long value.

This object is immutable and its value cannot be changed.

Bool is automatically loaded just after the program starts.

CLASS METHODS

true

sub true : Bool ()

true singleton. This is created by INIT block when the program start.

false

sub false : Bool ()

false singleton. This is created by INIT block when the program start.

INSTANCE METHODS

value

sub value : int ($self : self)

Return a int value.

If Bool object express true, this method return 1.

If Bool object express false, this method return 1.