Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Throwable CPAN distribution.

Report information
The Basics
Id: 76120
Status: resolved
Priority: 0/
Queue: Throwable

People
Owner: Nobody in particular
Requestors: lxp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.102080
Fixed in: (no value)



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.
perl -MThrowable::Error -le 'package Foo; use Moose; extends "Throwable::Error"; __PACKAGE__->meta->make_immutable(inline_constructor => 0)' -- rjbs