alloca, longjmp

Chris Torek chris at mimsy.UUCP
Tue Aug 9 16:47:55 AEST 1988


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

In article <261 at quintus.UUCP> ok at 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 at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list