Russell [EMAIL PROTECTED]
----- Original Message -----
From: Russell Yost <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 1999 12:12 PM
Subject: Re: [REBOL] "logical" value referencing ... Re:(2)


> See below:
> Russell [EMAIL PROTECTED]
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 15, 1999 10:32 AM
> Subject: [REBOL] "logical" value referencing ... Re:(2)
> > ACTUAL REPLY:
> >
> >  In the same vein, I was recently surprised
> > by
> >
> >     >> a: "123456"
> >     == "123456"
> >     >> b: next a
> >     == "23456"
> >     >> append b "-YOW!"
> >     == "123456-YOW!"
> >     >> b
> >     == "23456-YOW!"
> >
> > in which "the series" returned by 'append is clearly different from
> > "the series" referred to by 'b.
>
> I disagree; they still refer to the same series, IMO.
>
> You shouldn't have been surprised.  Here's a snippet of console stuff:
>
> >> ? append
> Appends a value to the tail of a series and returns the series head.
> Arguments:
>     series --  (series port)
>     value --
> Refinements:
>     /only -- Appends a block value into a block series as a block
> >> a: [1 2 3 4]
> == [1 2 3 4]
> >> b: next a
> == [2 3 4]
> >> append b "Wow"
> == [1 2 3 4 "Wow"]
> >> b
> == [2 3 4 "Wow"]
> >> a
> == [1 2 3 4 "Wow"]
>
> As you've been pointing out, a and b refer to the same series, but at
> different positions.
> 'Append added something to the series and *returned it at its head
position*
> a and b still refer to the same series, but at different positions.
>
>

Reply via email to