[REBOL] Re: Just two ways to the same place?
From: tim-johnsons::web::com at: 29-Aug-2007 9:25
On Wednesday 29 August 2007, Maxim Olivier-Adlhoch wrote:
> 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).
To expand on that, any data stored in an anonymous context can only
be referenced and/or changed by a function within that context.
This makes the data *truly* private!
I think one can implement 'use in a similar fashion. I've seen examples on
this ML - if memory serves me - but not implemented that approach
myself.
Tim