ExtUti...umValue(3pm)
π ExtUtils::XSpp::Node::EnumValue π
okay bestie, so this one is ExtUtils::XSpp::Node::EnumValue from the User Contributed Perl Documentation, and it's literally one of the XSpp node classes β iykyk. let's get into it π«Ά
β¨ NAME β¨
ExtUtils::XSpp::Node::EnumValue β the Node representing an enum element π
πΈ DESCRIPTION πΈ
so ExtUtils::XSpp::Node::EnumValue is a subclass of ExtUtils::XSpp::Node, and it represents an enum declaration. like, that's its whole job. it ate.
say you write something like this:
enum Bool
{
FALSE = 0,
TRUE
};
that? that right there is giving two ExtUtils::XSpp::Node::EnumValue objects, no cap:
- the first one has
nameFALSEandvalue0π - the second one has
nameTRUEand no value at all (it's giving mystery, it's giving undefined π)
and here's the tea bestie: enumerations do not affect the generated code. like, zero impact. they're just vibing in the tree. β¨
π₯ METHODS π₯
π new
my $e = ExtUtils::XSpp::Node::EnumValue->new( name => 'FALSE',
value => '0x1 | 0x4',
);
creates a brand new ExtUtils::XSpp::Node::EnumValue, slay π
and just so you know β value is optional. so if you don't pass it, that's valid, she's allowed to be mysterious. π¦
π ACCESSORS π
β name
returns the name of the enumeration element. iconic, straightforward, no drama.
π value
returns the initializer of the enumeration element β or undef if there isn't one. yes, undef! the lowercase king of nothingness. π
and that's the whole page, bestie, we ate and left no crumbs π
this was perl v5.40.1, dated 2026-07-03, brought to you by ExtUtils::XSpp::Node::EnumValue(3pm) β mwah, periodt πβ¨π
π¦ where this page comes from
- ubuntu stonking: libextutils-xspp-perl 0.1900-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms