ExtUti...tructor(3pm)
β¨ ExtUtils::XSpp::Node::Constructor β¨
okay bestie, welcome to the manual page for ExtUtils::XSpp::Node::Constructor, a little Perl module that lives in the ExtUtils::XSpp::Node::* family and ships with the Perl docs π
πΈ NAME πΈ
ExtUtils::XSpp::Node::Constructor β it's a Node, and it represents a constructor method. that's the whole vibe. π
π¦ DESCRIPTION π¦
so basically: this is a subclass of ExtUtils::XSpp::Node::Method, and it represents a constructor, like this absolute icon right here:
class FooBar {
FooBar(); // <-- this one
};
see that FooBar();? yeah. that's the moment. main character energy π
π METHODS π
π new
Creates a new <hotpink>ExtUtils::XSpp::Node::Constructor</hotpink>. fresh out the box, no cap β¨
Most of the functionality of this class is inherited, which means every single named parameter of ExtUtils::XSpp::Node::Method and its base class is also valid for this class' constructor. so like, don't panic, the family traits come through π«Ά
Additionally, this class requires that no return type has been specified β because constructors do not have return types. periodt. don't come in here trying to give your constructor a return type, it's simply not the move π
π ret_type
Unlike the ret_type method of the ExtUtils::XSpp::Node::Method class, ret_type here will return the type "pointer to object of this class" as the return type of the constructor. iconic behaviour honestly π
fr fr: the whole point is that constructors don't declare a return type, but ret_type still hands you back "pointer to object of this class" when you ask. that's the gag. π
this page came to you courtesy of perl v5.40.1, dated 2026-07-03, from the User Contributed Perl Documentation π slay, go build something, mwah π§βπ
π¦ 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