[REBOL] Re: Links ? Pointers ?
From: carl:cybercraft at: 25-Aug-2009 12:41
Hi Giuseppe,
On Sunday, 23-August-2009 at 12:00:52 Giuseppe Chillemi wrote,
>I am thinking about introducing a new notation for indirect links. Look at
>this:
>
>A: [1 2 3]
>B: C: ::A ;(please notice the double colon)
>
>B and C now would have a link to whatever A is pointing to.
>
>If we change A
>
>A: ["something" 1 2 3]
>
>Then
>PROBE B
>and
>PROBE C
>should return ["something" 1 2 3]
To achieve that currently, I'd do something like this...
>> a: [1 2 3]
== [1 2 3]
>> b: c: :A
== [1 2 3]
>> probe a
[1 2 3]
== [1 2 3]
>> probe b
[1 2 3]
== [1 2 3]
>> insert a "something"
== [1 2 3]
>> probe a
["something" 1 2 3]
== ["something" 1 2 3]
>> probe b
["something" 1 2 3]
== ["something" 1 2 3]
Is this not enough?
-- Carl Read.