The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.2 - 2011-04-12

  • Complete rewrite to resolve various issues (Karen Etheridge):
    • constructor is not inlined (RT#66784)
    • child classes cannot be slurpy if the parent is not (RT#66785)
    • compatibility issues with Moose 2.0
    • use from within a role
    • interactions with MooseX::StrictConstructor are now reversed - if Strict behaviour is applied to the class, it will take precedence over Slurpy behaviour. This is a simply due to how method modification works in Moose: the constructor cannot be "unmodified" again to tolerate arguments that it already finds intolerable.

Modules

Make your object constructor collect all unknown attributes
A role which implements a slurpy constructor for Moose::Object
A role to store the slurpy attribute in the metaclass
A role to make immutable constructors slurpy, and add meta-information used to find slurpy attributes
A role to make immutable constructors slurpy