MooseX...edType(3pm)

NAME πŸŽ€

MooseX::Types::UndefinedType β€” a fallback type for when a type cannot be found. It’s literally the understudy type bestie, standing by until the real type shows up. πŸ’…

VERSION ✨

version 0.51 β€” that’s the version, no cap. πŸ’–

DESCRIPTION πŸ¦‹

Whenever a type handle function β€” like Int() β€” can’t find a type constraint under its full name, it assumes it has not yet been defined. It will then return an instance of this class, handling only stringification, name and possible identification of undefined types.

Later, when you try to use the Undefined Type Constraint, autovivification will be attempted. So yeah, it’s giving β€œwe’ll figure it out later” energy, but on purpose. 😭✨

METHODS 🌸

new 🫢

Takes a full type name as argument and returns an instance of this class.

name πŸ”₯

Returns the stored type name.

__autovivify 🌈

Try to see if the type constraint has yet been defined and if so create it.

can_be_inlined πŸ‘‘

Make sure that if a type hasn’t been defined yet when Moose wants to inline it, we don’t allow inlining. Protecting the vibe check, fr fr. πŸ’…

AUTOLOAD ⭐

Try to autovivify and delegate.

DESTROY πŸ’€

Moose::Meta::TypeConstraint::Parameterizable complains if this isn’t here. TODO to find out why. Not me leaving a mystery in the group chat. πŸ™ˆ

SEE ALSO 🧚

  • MooseX::Types::Moose
  • Moose::Util::TypeConstraints
  • Moose::Meta::TypeConstraint
  • Carp::Clan

SUPPORT πŸ’–

Bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types> (or bug-MooseX-Types@rt.cpan.org <mailto:bug-MooseX-Types@rt.cpan.org>). Get those bugs handled, bestie. πŸ›βœ¨

There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>. Group chat for Moose users, lowkey iconic. 🫢

There is also an irc channel available for users of this distribution, at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>. IRC era slay. πŸ‘‘

AUTHOR 🌟

Robert "phaylon" Sedlacek <rs@474.at>

This software is copyright (c) 2007 by Robert "phaylon" Sedlacek.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


🧚 Footer fairy check: this page is from the User Contributed Perl Documentation, tagged perl v5.42.0 and dated 2025-07-25. Bye bestie! πŸ’œβœ¨
πŸ“¦ where this page comes from