Re: Possible to disable/rename meta() method

[email protected] (Sartak)
Newsgroups perl.moose
Message-ID <[email protected]>
On Tue, Jan 6, 2009 at 11:58 PM, Chris Prather <[email protected]> wrote:
> On Tue, Jan 6, 2009 at 11:56 PM, Yuval Kogman <[email protected]> wrote:
>> 2009/1/7 Stevan Little <[email protected]>
>>
>>> Tom,
>>>
>>> Nope, sorry 'meta' is used internally in Moose too much to override.
>>
>>
>> Actually this is not as true today as it used to be... But we're still a bit
>> too far off from being able to disable it.
>> I think realistically it can be done in a branch in a few hours of work if
>> anybody wants to try.
>
> How much of CPAN will it break if/when switched off ...

The fix for CPAN modules is easy: instead of using $package->meta or
Class::MOP::Class->initialize($package), use
Class::MOP::get_metaclass_by_name($package).

Also, it'll only break if you actually rename or don't install ->meta,
so it's not going to break any back compat. It'll only break if you
use a naughty MooseX, and it will generally break spectacularly.

There's no reason not to do this. I'll get started on the branch.

>
> -Chris
>

Shawn
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.