On Tue, Sep 13, 2005 at 11:14:07AM +0200, Rafael Garcia-Suarez wrote: > Nicholas Clark wrote: > > From what I remember Alan telling me about what Dave had said, there are > > were > > a few more points other than entersub and leavesub that would need > > instrumentation. goto ⊂ was the most obscure, but I think that require > > was another. > > What about the unusual ways of exiting a subroutine, e.g. with "next" ?
My suggestion to Alan was to hitch a ride on the PUSHSUB/POPSUB macros; that way you should be able to trap *all* occurances, including hand-rolled calls in XS (eg the call outs to Perl in List::Util) -- "Emacs isn't a bad OS once you get used to it. It just lacks a decent editor."