[comp.lang.c] alloca, longjmp

chris@mimsy.UUCP (Chris Torek) (08/09/88)

>In article <895@vsi1.UUCP> bitbug@vsi1 (James Buster) writes:
>>There is one reason to use alloca: longjmp.

In article <261@quintus.UUCP> ok@quintus.uucp (Richard A. O'Keefe) writes:
>There are a lot of other things one might want to clean up as well ....

>The answer is to put together something like Lisp's (unwind-protect ...),

The wheel turns (and on USENET, it has a short cycle :-) ).  I remember
proposing various mechanisms at least twice (once here or in unix-wizards,
once in comp.lang.c++).

An unwind-protect mechanism would indeed do the trick (and would allow
building higher level mechanisms, if desired).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris