Am Freitag, 7. Dezember 2012, 18:57:19 schrieb Anton Ertl: > It has returned for a long time. If it returns to main(), it used to > do some cleanup actions and then main() returns (and whatever calls > main() exits). Why has that changed?
The gforth-as-library needed some significant refactoring of main(), so that people can actually use it. gforth_start(argv, argc) is doing all the setup of an engine, including handling the command line paramenters, and returns after completion. This is because a system where Gforth is used to script some parts will want it in that state, but will *not* go into interactive mode. If you want to go into interactive mode, you call gforth_quit(), which is probably an unintuitive name, but that's, because QUIT has been wrongly named by Chuck. > If (bye) is used in an inner > invocation of the engine, then it probably should not exit, but that's > not what David has tried. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
signature.asc
Description: This is a digitally signed message part.