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::Native::Env - Runtime Environment

Description

The Native::Env class in SPVM represents an runtime environment.

Usage

  use Native::Env;
  
  my $env = $runtime->new_env;
  
  my $stack = $env->new_stack;

Details

This class is a pointer class.

Its insntace has the pointer to an object of the SPVM_ENV type.

Fields

has runtime : ro Native::Runtime;

The runtime for this runtime environment.

Instance Methods

DESTROY

method DESTROY : void ();

The destructor.

new_stack

method new_stack : Native::Stack ();

Builds a call stack and returns it.

The return type is the Native::Stack class.

See Also

Native::Runtime

The get_runtime method in the Native::Runtime class builds an executable environement.

Native::Stack

The instance of the Native::Stack class is build by the "new_stack" method in this class.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License