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

[REBOL] location independant code

From: antonr::iinet::net::au at: 28-Mar-2003 20:23

I just thought of a way of making my code more portable. Currently, I do similar to this in all my scripts: site: http://www.lexicon.net/anton/rebol/ do load-thru site/library/include.r ... And when I change my webspace provider I have to go through all my scripts and change the site to the new address. With the help of rebol, that's not very hard. But there's a better way! Rebol Tech has provided an index of rebsites. As long as I maintain the link there to my rebsite, I can use the same code to determine the site: site: select load-thru http://www.reboltech.com/index.r [folder "Anton"] clear find site %index.r ; == http://www.lexicon.net/anton/rebol/ And if I move I just update Rebol Tech's index. Cool! Now why didn't I realise that before? Anton.