Moose
Moose copied to clipboard
Official repository for Moose
It's currently not possible to reference non-Moose classes in union types if Moose has not yet registered the type constraints. I.e. this works: ```perl has 'bar' => (is => 'rw',...
method modifiers for overrided attribute's accessors(reader/writer/accessor) are not executed when I try to use method modifiers in child class for that. ```perl #!/usr/bin/env perl { package My; use Moose; has...
Fix for [RT#123299](https://rt.cpan.org/Public/Bug/Display.html?id=123299)
Fix for https://rt.cpan.org/Public/Bug/Display.html?id=124194 Single calls to demolish had the potential to emit warnings. This silences 'em.
When attempting to [fix MooseX::LazyRequire so you can turn it on and off in a sub-class](https://github.com/moose/MooseX-LazyRequire/pull/1), I came up against the problem that when you inherit from a parent class's...
This allows weak_ref with a lazy default to work if the caller captures the return value from calling the getter. Some exceptions probably need adjustment, and there are related issues,...
While profiling some hot code I reviewed `Moose::Meta::TypeConstraint::equals`, and think that the lower half of it is bogus and can be removed: After the single "return 1" of the method,...
Copied override from MooseX::Types::TypeDecorator to allow union from all types. In theory this should mean we can remove it from MooseX::Types. Allow: my $type2 = $type1 | class_type('Bar'); as well...
I'm just passing one more argument to _inline_throw_exception. In MooseX::Attribute::TypeConstraint::CustomizeFatal, I'm overriding _inline_throw_exception & using this argument to initialize attribute's value to the default value.
Several times I've been bitten by Moose telling me that I'm using a read only accessor even when the attribute is 'rw' because something has set a custom writer. The...