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

[REBOL] Re: Context - code included- 2nd version

From: lmecir:mbox:vol:cz at: 16-Sep-2001 10:06

Hi all, just posted the latest version of http://www.sweb.cz/LMecir/contexts.html with terminological changes reflecting Holger's recommendations. Moreover, the CFUNC implementation it contains doesn't rely on the values of function context words after the function returns. some differences:
> Replace "Special Word" with "word not bound into a context".
This surely is more accurate than the notion of "undefined word", but It would make the text less concise than I considered acceptable
> Replace "Loaded Word" with "word which exists in the global context".
Removed the notion completely, used a different notion of effective/ineffective binding
> Replace "Global Word" with "word bound into the global context".
I preferred conciseness in this case
> Replace "Local Word" with "word bound into a non-global context".
Again I preferred conciseness, because it didn't seem to introduce any ambiguities
> - The global context expands automatically as new words are bound into it. > The fact that this increases the number of "Loaded Words" is redundant > (again, result of obscure terminology).
Accepted
> - Scoping: REBOL uses lexical scoping, not dynamic scoping, but allows
words
> to be rebound during block evaluation. That's how words can refer to
different
> contexts even though their scope is lexical. "Scope hierarchies" imply
some
> kind of tree, which does not exist, so using that term is probably a bad
idea.
> Calling a scope hierarchy "virtual" is yet another definition which
obscures
> facts rather than illustrates them.
Accepted