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

[REBOL] Re: Limit on Globals?

From: larry:ecotope at: 6-Nov-2001 12:05

Hi Tim, Ryan, Just a couple of quick comments on 'global' words (those listed in first system/words). 1) Every token in the source code which scans as a valid REBOL word is added to the global words. It makes no difference whether the word occurs in the local context of an object. In fact, even asking if a word is in first system/words will cause it to be added because the code is scanned and loaded before any evaluation occurs. 2) There is no way to remove global words. They accumulate in any REBOL session until the limit (currently 4094) is reached. 3) It is good to remember that a given word can be used in many contexts, referring to a different value in each context. A coding style which reuses variable names is less likely to result in reaching the limit on words. -Larry