SPVM::N...lassVar(3)
β¨ SPVM::Native::ClassVar(3) β¨
okay so this is from the SPVM::Native::ClassVar page in the User Contributed Perl Documentation section of the manual, and bestie, it's giving "small but mighty" π
π Name π
SPVM::Native::ClassVar β like, everything you ever wanted to know about class variables, but make it an object π
π¦ Description π¦
so the Native::ClassVar class of SPVM ships with methods that let you manipulate information of class variables. that's it, that's the vibe. lowkey iconic for such a short sentence ngl π«Ά
πΈ Usage πΈ
literally just pull it in like this:
use Native::ClassVar;
and you're in β¨
π Instance Methods π
these are the methods you call on an instance, iykyk π§
β get_index
method get_index : int ();
gets the index. no cap, that's the whole thing.
if a memory error occurs, an exception is thrown. π
β get_name
method get_name : string ();
gets the name. the name! of the thing! π
if a memory error occurs, an exception is thrown. π
β get_basic_type
method get_basic_type : Native::BasicType ();
gets the Native::BasicType object. yes, that exact class, don't @ me π
if a memory error occurs, an exception is thrown. π
β get_type_dimension
method get_type_dimension : int ();
gets the type dimension. dimension, like a little math fairy situation π§β¨
if a memory error occurs, an exception is thrown. π
β get_type_flag
method get_type_flag : int ();
gets the type flag. flag as in data, not as in planting one on the play π©
if a memory error occurs, an exception is thrown. π
β get_current_basic_type
method get_current_basic_type : Native::BasicType ();
gets the current Native::BasicType object β like, the one that defines this class variable. main character energy fr fr π
if a memory error occurs, an exception is thrown. π
β is_cache
method is_cache : int ();
if the "cache" class variable attribute is specified, returns 1, otherwise returns 0. cute little yes/no situation π
π Copyright & License π
Copyright (c) 2023 Yuki Kimoto
MIT License
and that's the whole page bestie, short and sweet, no notes πβ¨
okay so the sign-off: this one came from perl v5.42.2, dated 2026-02-03, and it's the SPVM::Native::ClassVar(3) page all over again at the bottom because manpages love a lil symmetry ππ go forth and query your class variables, you've got this π«Άπ₯
π¦ 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