[REBOL] Odd behavior with setting variables Re:(3)
From: al:bri:xtra at: 25-Jul-2000 20:59
Just a few comments.
> currentpath: "ftp://blah:[blah--blah--org]/blah/blah/"
Did you know that Rebol works with URLs directly? Like this:
>> currentpath: ftp://blah:[blah--blah--org]/blah/blah/
> path: ["blah1" "blah2" "blah3" "blah4" "blah5"]
is better written as:
paths: [%blah1/ %"blah blah2/" ...
> loop 5 [
is better as:
foreach path paths [
> append currentpath FIRST path
> workpath: join currentpath ["blah.data"]
> currentdata: load to-url workpath
becomes clearer as:
workpath: join currentpath [path %"blah.data"]
and workpath is already a url.
You also seem to be repeating a lot of things in the loop, which perhaps
should be broken up into a separate function?
I think you'll find that when you clean up your script, your problems will