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

[REBOL] Re: Just two ways to the same place?

From: moliad::gmail::com at: 29-Aug-2007 12:28

Hi Kai, The concept of anonymous context is an old one in REBOL. This is a sign that you are starting to delve deeper into rebolese :-) The most obvious reason one builds such contexts is to protect functions and local data from spilling into the global context (and vice-versa). since you have no need for the context itself, there is no need to store any reference to it. You can sort of see this as a manual "scoping" of variables (although its really static binding of word). Because REBOL's garbage collector will not release memory until all references of any context or its members are set to none (this is a quick summary of how it works, there is a bit more to it), the anonymous context will stay in RAM while its used. -MAx On 8/29/07, Kai Peters <> wrote: