RE: Possible to disable/rename meta() method
[email protected] ("Howe, Tom \(IT\)")
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <4DB89F6E2396564AB3BF4F5057A1721C95295E4391@LNWEXMBX0104.msad.ms.com> |
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. Thanks Ps. How do I subscribe to the mail list? > -----Original Message----- > From: Chris Prather [mailto:[email protected]] > Sent: 07 January 2009 04:59 > To: Yuval Kogman > Cc: Stevan Little; Howe, Tom (IT); [email protected] > Subject: Re: Possible to disable/rename meta() method > > 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 ... > > -Chris > -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.