On Thu, Jan 20, 2011 at 1:32 PM, Zefram <zefram@fysh.org> wrote: > You should prototype this as a CPAN module, using the keyword hook. Conceptually this is is a subset of MooseX::Method::Signatures[1], Method::Signatures::Simple[2] Method::Signatures[3], Perl6::Subs[4], as well as similar in principle to selfvars[5], self[6], and Object::LocalVars[7]. What exactly are you looking for from a prototype that isn't provided in one of those seven (7!) modules? -Chris Note: I generated this list with a quick search for "self" and "method" on CPAN. Two of these modules I knew existed because various members of the Moose community use them in production environments (specifically MooseX::Method::Signatures and Method::Signatures::Simple). There may be other modules which replicate this behavior as well, I gave up when I found the two I knew about ... and five more. [1]: http://search.cpan.org/dist/MooseX-Method-Signatures [2]: http://search.cpan.org/dist/Method-Signatures-Simple [3]: http://search.cpan.org/dist/Method-Signatures [4]: http://search.cpan.org/dist/Perl6-Subs [5]: http://search.cpan.org/dist/selfvars [6]: http://search.cpan.org/dist/self [7]: http://search.cpan.org/dist/Object-LocalVarsThread Previous | Thread Next