SPVM::Int(3)
β¨ SPVM::Int β¨
Okay bestie, welcome to SPVM::Int β that's the page from the SPVM::Int(3) manual, and it's lowkey iconic. The whole vibe? An int value as an object. Yep, that's the entire NAME situation. An int value as an object. Slay.
π DESCRIPTION
The Int class in SPVM represents an int value as an object. That's it, that's the whole personality. A little int but make it an object, main character energy fr fr. π
πΈ USAGE
Here's how you and this class link up:
my $int_object = Int->new(5);
my $int_value = $int_object->value;
Build the object, grab the value back out. Effortless. π
π¦ DETAILS
- This class is immutable β once it's made, it's made. No take-backs, no edits, we respect the boundaries. β¨
- This class is automatically loaded β it just shows up for you, no
use-ing required, iykyk. π«Ά
π INTERFACES
Stringableβ yes she implements it, she can string-ify herself, we been knew. π
π FIELDS
value
has value : ro int;
That's the value. Read-only (ro), so hands off the merch. π
π₯ CLASS METHODS
new
static method new : Int ($value : int);
Creates a new Int object with a int $value. You pass the int, it hands you back a whole object. Glow-up complete. β
π INSTANCE METHODS
to_string
method to_string : string ();
Casts the value to string type and returns it. Your int goes to string finishing school and comes back looking expensive. π
β¨
π COPYRIGHT & LICENSE
Copyright (c) 2023 Yuki Kimoto
MIT License
Full credit where it's due β this page ships withperl v5.42.2and is dated2026-02-03. Thanks Yuki, MIT License legend, we appreciate you fr fr π«Άπ
π¦ where this page comes from
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms