[REBOL] Re: launch behaviour and quitting
From: carl::rebol::com at: 4-Jun-2001 8:46
WRT launch:
This is one of those 1.0 decisions that we will
revisit often. We can always relax the launch
restrictions in the future.
WRT quit/close:
There is nothing magic about close...
VIEW by default does a DO-EVENTS, which will
wait until all windows have been closed, then
will return and execute the rest of the script.
If you do:
unview/all
You accomplish the result you are seeking (close).
You could write:
quit: does [unview/all]
before DOing the script. But, you'll need to wrap
a throw around it too:
quit: does [unview/all throw/name 'done]
and use a catch around DO:
catch/name [do %the-script.r] 'done
-Carl