Re: "automatically" wrapping methods.
[email protected] (Chris Weyl)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CABSyATFLTR3vbJ6SD7VL-4T_=ARtff4JOtnBnHe3pxzygVzc1A@mail.gmail.com> |
On Thu, Jan 12, 2012 at 9:39 AM, Peter Shangov <[email protected]> wrote: > I am interested specifically in the event captured by > Sub::Mutate::when_sub_bodied(). I would like to be able to mess with a sub > immediately after it has been compiled, i.e. its prototype has been set, > its attributes have been executed, and its body has been defined, but > before any code has had an opportunity to invoke it. I imagine the > B::Hooks::EndOfScope::on_scope_end() approach would fail e.g. if there is a > BEGIN block calling the sub immediately after its definition. > Is there something in particular you're trying to do here? I'd imagine it's Moose and validation related, as you're asking it in this thread, but without more specifics... -Chris -- Chris Weyl Ex astris scientia