Re: Possible to disable/rename meta() method

[email protected] (Sartak)
Newsgroups perl.moose
Message-ID <[email protected]>
On Wed, Jan 7, 2009 at 4:49 AM, Howe, Tom (IT)
<[email protected]> wrote:
> Would be nice to be able to optionally rename or prefix it.
>
> I don't think a object meta class should add methods to the main interface unless the object specifically needs to expose them.
>
> So by default there could be a _moose_meta() method and an easy way to create a meta() -> _moose_meta() handler if required (per class). This could be a global option if want to retain compatibility with existing modules that require it.

Yes, we all agree that it would be useful to give users the ability to
rename or not install a meta. The problem is that in quite a few
places in Class::MOP, Moose, and all of MooseX, we call $pkg->meta
with the expectation that it'll be there and return the metaclass.

It's just a small design problem, one we can fix with enough grunt work. :)

>
> Thanks

Shawn

> Ps. How do I subscribe to the mail list?

Send mail to [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.