Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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/
== ftp://blah:[blah--blah--org]/blah/blah/ This:
> path: ["blah1" "blah2" "blah3" "blah4" "blah5"]
is better written as: paths: [%blah1/ %"blah blah2/" ... This:
> loop 5 [
is better as: foreach path paths [ Then this:
> append currentpath FIRST path > workpath: join currentpath [""] > currentdata: load to-url workpath
becomes clearer as: workpath: join currentpath [path %""] 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 vanish. Andrew Martin ICQ: 26227169