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