[comp.lang.forth] global storage of setjmp

wmb@MITCH.ENG.SUN.COM (06/10/90)

> (personally I find a "malloc"ed array of jmp_buf's treated as a stack
> of recovery points more useful than the potential uses of "foo", but
> that's just me.)

Which is exactly the point.  ANS Forth CATCH and THROW implicitly
perform this stacking action for you, for free.  You don't have to
synthesize your own stack.  The nested handlers go on the return
stack in a very natural and easy-to-implement fashion, and they
are automatically removed without any special care on the part of
the programmer.

Mitch Bradley