[REBOL] Re: Variable not avilable out of a foreach
From: henrik::webz::dk at: 12-Dec-2007 17:04
On 12/12/2007, at 04.25, Anton Rolls wrote:
> Hi Tim,
> Tim Johnson wrote:
>> On Tuesday 11 December 2007, Anton Rolls wrote:
>>> Hi Giuseppe,
>> I must defer to Anton's grasp of rebol - I believe his knowledge
>> of theory runs deeper than mine, but I must differ with what
>> he says here:
>>> Let me just start by saying that rebol defines no "scope".
>> because at
>> "scope" is indeed a topic here.... to say otherwise is to
>> further confuse the newcomer.
>>> Every word can be bound and rebound dynamically
>> Indeed! And 'bind is a powerful tool that enables us to
>> manipulate scope... but first one must understand how
>> rebol uses "definitional scoping".
> Fair enough. Let me add that bind is how scope in
> rebol is implemented. Knowledge of bind is how one
> understands scope in rebol better.
Let me add that if you experience issues with words not containing the
correct values where they should, BIND? can offer an explanation. It
shows the context (object) that the word is bound to.
Henrik Mikael Kristensen