Tim Harig <user...@ilthio.net> writes:
>> That's called longjmp.
>
> The problem is that you might have partially allocated data structures
> that you need to free before you can go anywhere.

Alloca can help with that since the stack stuff gets released by the
longjmp.  Alternatively you can have an auxiliary stack of cleanup
records that the longjmp handler walks through.  Of course if you do
that, you're halfway towards reinventing exceptions.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to