Re: Not inlining 'new' for Foo since it has method modifiers which would be lost if it were inlined

[email protected] (Bill Moseley)
Newsgroups perl.moose
Message-ID <CAKhN_m5tf8+vqDQqyFYe0yMV2NquTYPbeO6n9v5w68NJBznZRA@mail.gmail.com>
On Fri, Feb 24, 2012 at 6:59 PM, Chris Prather <[email protected]> wrote:

> Throwable::Error composes leads to:
>
>
> https://metacpan.org/source/RJBS/Throwable-0.102080/lib/StackTrace/Auto.pm#L71
>
> In which we find 'around new => { ... }'. Which is exactly the method
> modifier that Moose is warning about.
>

Thanks Chris.  Is the solution to not make_immutable all the classes that
inherit from Throwable::Error then or to also use inline_constructor => 1
then?

I guess I'm not sure why the method modifier would be lost, but that's just
my lack of understand of how Moose works. ;)

Thanks,


>
> -Chris
>



-- 
Bill Moseley
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.