Subject: | Not inlining 'new' for Foo since it has method modifiers which would be lost if it were inlined |
$ perl -MThrowable::Error -le 'package Foo; use Moose; '\
Show quoted text
> 'extends "Throwable::Error"; Foo->meta->make_immutable'
Not inlining 'new' for Foo since it has method modifiers which
would be lost if it were inlined
$ perl -MThrowable::Error -le 'package Foo; use Moose; '\
Show quoted text> 'extends "Throwable::Error"; 1'
(no warning)
Moose::Cookbook::Basics::Recipe7 recommends making all Moose
classes immutable, and MooseX::Declare does this automatically.
Some discussion on, and diagnosis of this issue has taken place
here:
http://www.nntp.perl.org/group/perl.moose/2012/02/msg2420.html
but I am too unfamiliar with this side of Moose at this stage
to understand what the correct solution is.