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

[REBOL] Re: Accessing a script from itself

From: greggirwin:mindspring at: 18-Dec-2004 10:26

Hi Carl, CR> After a script is running, is the source stored somewhere where it CR> can be accessed, or would you have to load it again from disk? It isn't available...normally, but REBOL being what it is, a simple twist will make it available. Just define your main script as a block and DO it at the end, then that block will be available to you. my-source: [ print 'testing b: copy [] append b [1 2 3] ] do my-source -- Gregg