[REBOL] Re: The truth about scope
From: volker:nitsch:gm:ail at: 14-Apr-2005 13:12
Hi Gabriele,
i guess you made a typo and now we have a misunderstanding.
you wrote
>> s: "A string."
== "A string."
>> b: reduce [s]
== ["A string."]
>> insert skip s 2 "modified "
== "string."
>> s
== "A modified string."
>> b
== ["A modified string."]
Here s and b/1 are actually the same.
i guess you got confused by the
insert skip s 2 "modified "
if you would store that,
s: insert skip s 2 "modified "
you would be right. but you did not, they are the same, and everyone
is scratching his head ;)
On 4/14/05, Gabriele Santilli <[gabriele--colellachiara--com]> wrote:
> Hi Ladislav,
>
> On Thursday, April 14, 2005, 12:17:58 PM, you wrote:
>
> LM> my wild guess seems to be correct. Gabriele "combines" values and their
> LM> positions in series to obtain a notion of a "series value". It is
>
> I mean not the position they have, but the position they refer to.
>
> NEXT, SKIP etc. create a new value referring to the same sequence
> but at different positions.
>
> Regards,
> Gabriele.
> --
> Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
> Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
-Volker
Any problem in computer science can be solved with another layer of
indirection. But that usually will create another problem.
David
Wheeler