Re: XForms: how does fl_show_question() do it ?

Paul Barton-Davis (pbd@Op.Net)
Wed, 08 Jul 1998 14:49:10 -0300

# To subscribers of the xforms list from Paul Barton-Davis <pbd@Op.Net> :

I said:
>> 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.

Steve said:

>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.

I don't think so. If there are callbacks on all the objects then
fl_do_forms() *never* returns. The loop that called it never gets to
check the flag. Or am I being dense ?

--p
_________________________________________________
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/