We have several places in main.c, where non-recoverable bugs happen, and we 
exit() on them. As Gforth can be used as library now, this is a bad idea - a 
library should never exit, so the only word that should be allowed to exit is 
main(). What to do?

C's exception handling with setjmp/longjmp is very poor, and can't be used 
outside the engine, where we pass the attempt to do some primitive exception 
handling to CATCH/THROW in Forth. So the probably best way is to define error 
return values for all the functions that may fail.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
http://bernd-paysan.de/

Reply via email to