SPVM::Native::API(3)

πŸ“¦ version 0.990125, in alpine 3.24

πŸ¦‹ SPVM::Native::API πŸ¦‹

okay so this is the SPVM::Native::API page from the User Contributed Perl Documentation section, and bestie, it's giving "tiny module, big responsibilities" ✨


πŸ’œ Name

SPVM::Native::API β€” Native APIs. that's the whole name section, short and iconic πŸ’…


🌸 Description

so the Native::API class in SPVM has methods to call native APIs. that's it, that's the vibe check, and honestly? obsessed 🫢


πŸŽ€ Usage

like, literally just:

use Native::API;

and you're in, no cap πŸ’–


⭐ Fields

🧚 env

has env : Native::Env;

your environment field, right there, main character energy πŸ‘‘

πŸ“ stack

has stack : Native::Stack;

the stack field, keeping things stacked (literally) πŸ’…


✨ Class Methods

  • static method new : Native::API ($env : Native::Env, $stack : Native::Stack); β€” the constructor, bestie! you hand it an $env of type Native::Env and a $stack of type Native::Stack, and it gives you back a fresh Native::API 🌈

πŸ”₯ Instance Methods

πŸ’– set_command_info_program_name

method set_command_info_program_name : void ($program_name : string);

copies the program name $program_name and sets the program_name class variable in CommandInfo in this instance class to it. copy, set, slay ✨

πŸ’œ set_command_info_argv

method set_command_info_argv : void ($argv : string[]);

copies the command line arguments $argv and sets the argv class variable in the CommandInfo class in this instance to it. so yes, it's copying and setting, both, we love a multitasker πŸŽ€

🌸 set_command_info_basetime

method set_command_info_basetime : void ($base_time : long);

sets the base_time class variable in the CommandInfo class in this instance to the base time $base_time. no copying here, just setting, periodt πŸ’…

πŸ¦‹ call_init_methods

method call_init_methods : void ();

calls all INIT blocks in this instance. every single one. go off πŸ‘‘

🧚 destroy_class_vars

method destroy_class_vars : void ();

destroys all class variables in this instance 😭 it's giving cleanup era, we respect it

πŸ“ get_exception

method get_exception : string ();

gets the excetpion. (yes the docs literally spell it "excetpion" and honestly? iconic typo, no notes πŸ’€) anyway, it returns a string. it's the exception getter, iykyk

⭐ set_exception

method set_exception : void ($exception : string);

sets an excetpion. again, the typo is canon πŸ™ˆ this one takes $exception (a string) and returns void


Copyright (c) 2024 Yuki Kimoto πŸ’–

MIT License 🌈


and that's the whole page bestie, every field, every method signature, every word, all still here 🫢

okay final sign-off: this page comes from perl v5.42.2, dated 2026-02-03, and its manpage title is SPVM::Native::API(3) β€” go forth and call your native APIs, mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from