On 11 Mar 2010, at 09:53, Mark Morgan wrote:
but it may permit avoiding hacks like the above...
Avoiding 'hacks' by meddling with the perl interpreter's internals...
Interesting definition there :_)
I jokingly proposed this on irc at one point:
11:31 <@t0m> domm: doc patch? Also, it'd be quite possible to make the
Catalyst metaclass role initialization go and import Devel::BeginLift,
so you don't need BEGIN..
11:32 <@t0m> Well volunteered..
11:32 <@rafl> noooooo
11:32 <@rafl> (no BeginLift, kthx)
11:32 < domm> doc patch: will do!
11:33 <@t0m> hehe, I thought that would scare you :)
11:33 < domm> I'm not that easily scared :-)
11:33 <@t0m> domm: awesome, thanks!
11:33 <@t0m> nn, I meant mentioning 'just make metaclass
initialization wave BeginLift at someone elses package'
11:33 <@rafl> no, really. i am/was totally cool with B::Hooks::
(EndOfScope|OP::Check::StashChange) and Scope::Upper. but not
BeginLift :-)
11:34 <@t0m> ^^ That was the scary
11:34 <@rafl> yeah. please stop using my modules!
I'd go with not doing something the maintainer of a scary C module
says will hurt you. :_)
That said, BeginLift really isn't needed for that - a Moose::Exporter
module can trivially give you Moose and set your superclass in one use
statement..
Cheers
t0m