[REBOL] Re: ANN: make-doc-pro-104 RC1
From: anton:lexicon at: 22-Jul-2002 3:21
> It's not a release yet ;-)).
Well then, I can't wait for a release!
:0
It's ok. ;)
> > Can you explain why you really need to halt
> > the script "unnaturally" like this? :)
>
> Because falling back to the command-line of Rebol is way faster when I
> need to start MDP over and over again. It keeps the last directory and
> selected file information, that's why I end to the command-line. Robert
Do you mean to say you change the current dir?
That is very naughty.
If, for whatever reason, your script fails before restoring
the current directory, you will have modified the environment.
It seems that every man and his dog has made a recursive directory
parser (ie. tree).
I have made one, but it does not modify the current directory.
This is excellent, because my code may fail. If not today,
then maybe in future, when a new version of rebol is out.
I want to make my code resistant to annoying little things
like that. This feature also made it easier to develop.
(Of course, we can always wrap possible-crashing code in a
try block.)
Regards,
Anton.