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

[REBOL] Re: saving Rebol

From: carl:cybercraft at: 24-Nov-2000 19:19

On 24-Nov-00, Graham Chiu wrote:
> In Forth, when you add new words to the dictionary, you can > save the new forth image so that when executed again, all > the new words are retained. > Is there something like this in Rebol?
Can't help you with that one, but...
> And what's the Rebol way of doing conditional compilation? > I would have guessed something like > if ( not exists? clean-script ) > [ do %clean-script.r ] > but exists? only works on files and urls.
You can see if words exist using value? So, assuming clean-script.r creates a word called 'clean-script-flag, the following should work for you... if ( not value? 'clean-script-flag ) [ do %clean-script.r ] Hope that's of some use. Carl Read.