> # To subscribers of the xforms list from Paul Barton-Davis <pbd@Op.Net> :
>
> >I've written some fairly
> >complicated applications, including some multi-threaded ones, and
> >have almost never had the need to resort to setjmp/longjmp.
>
> The key insight seems to be not to use callbacks in such cases. I
> ended up using setjmp/longjmp because there was no other way to
> "return" to the correct level from the callback. However, as you have
> demonstrated, avoiding the callback and just allowing fl_do_forms() to
> return works fine. I've always use callbacks in every other area of
> XForms programming, so I was thrown off track by this. Thanks very
> much. XForms is such a classy piece of work.
Your callback routine can set a global flag, and the loop that calls
fl_do_forms can exit when the flag is set. That avoids setjmp/longjmp
and still lets you use callbacks.
-- Steve
-- -- EMail: stephen.langer@nist.gov Phone: (301) 975-5423 -- -- WWW: http://math.nist.gov/mcsd/Staff/SLanger/ Fax: (301) 990-4127 -- -- Mail: Building 820 Room 365; NIST; Gaithersburg, Md 20899-0001 -- _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html XForms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/