If you're the programmer, you can do something at end of scope by placing
a local object in the scope, and have its DESTROY method do cleanup.

Can anyone think of a reliable, non-source filter way of attaching such a
destructor method onto the scope of your caller?

Basically, I'm wanting to be able to write a subroutine skip that can be
called unknowingly like this:

{
  ... # stuff
  skip ("innocent parameter of some sort");
  ... # more stuff
} # X

and have skip hang some sort of call back that fires when the scope marked
with X exits.

Nicholas Clark
-- 
Even better than the real thing:        http://nms-cgi.sourceforge.net/

Reply via email to