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 <[EMAIL PROTECTED]> wrote: > > > Hi Tim ~ > > tried to think of a situation where I'd use that and could > not come up with anything - do you have a practical example > you can share? > > Thanks > Kai > > On Tue, 28 Aug 2007 07:47:45 -0800, Tim Johnson wrote: > > > > On Monday 27 August 2007, Kai Peters wrote: > > > >> Is there any difference between > >> > >> set 'some-word func [ ...... > >> > >> and > >> > >> some-word: func[ ..... > >> > > Hi Kai: > > Consider this: > > context [set 'test func[][]] ; untested :-) here we have an > > anonymous context. And such a creature can be very useful. tim > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
