Re: Forgotten but not gone
Re: Forgotten but not gone
- Subject: Re: Forgotten but not gone
- From: Charles Arthur <email@hidden>
- Date: Fri, 26 Jan 2001 22:55:29 +0000
On Fri, 26 Jan 2001 10:31:48 -0800, Richard 23 <email@hidden> wrote:
...
>
For reasons of efficency due to the common usage of lists the
>
linked list was put into the closet but not without providing
>
compatibility with the original data type.
>
>
So here's is an example and it's not a typo:
>
>
set x to [1, 2, 3]
>
set y to [4, 5, 6]
>
set z to x & y
>
set item 2 of y to 999
>
z --> {1, 2, 3, 4, 999, 6}
>
>
set x to {1, 2, 3}
>
set y to {4, 5, 6}
>
set z to x & y
>
set item 2 of y to 999
>
z --> {1, 2, 3, 4, 5, 6}
Even weirder (or more fascinating):
set a to [1, 2]
set b to [3, 4]
set c to a & b
set second item of b to 99
c --> {1, 2, 3, 99}
set a to {1, 2}
set b to [3, 4]
set c to a & b
set second item of b to 99
c --> {1, 2, 3, 4}
So curly brackets rule over vectors... fascinating...
Charles
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...