SPVM::N...lassVar(3)

πŸ“¦ version 0.990125, in alpine 3.24

✨ 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 (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