[REBOL] Re: Backwards Navigation on path
From: cyphre:seznam:cz at: 12-Oct-2001 12:12
Hi Ingo,
Oops, your solution doesnot work since you are trying to assign recursive
value form undone object:
>> a: make object! [
[ b: make object! [
[ c: "object"
[ ]
[ d: make object! [
[ b: make object! [
[ c: "second object"
[ ]
[ e: make object! [
[ f: system/words/a/b/c
[ ; ^^^^^^^^^^^^^^
[ ]
[ ]
[ ]
** Script Error: f needs a value
** Near: f: system/words/a/b/c
>>
I think this should be:
>> a: make object! [
[ b: make object! [
[ c: "object"
[ ]
[ d: make object! [
[ b: make object! [
[ c: "second object"
[ ]
[ e: make object! [
[ x: does [do bind [a/b/c] 'a]
[ ]
[ ]
[ ]
>> a/d/e/x
== "object"
>> a/b/c
== "object"
>> a/b/c: "test"
== "test"
>> a/d/e/x
== "test"
>>
Regards,
Cyphre