[REBOL] Re: Backwards Navigation on path
From: rotenca:telvia:it at: 12-Oct-2001 14:36
Hi Cyphre,
> 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]
> [ ]
> [ ]
> [ ]
Why not one of these:
probe a: make object! [
b: make object! [
c: "object"
]
d: make object! [
b: make object! [
c: "second object"
]
e: make object! [
x1: do bind [b/c] 'd
x2: first reduce bind [b/c] 'd
x3: get in get bind 'b 'd 'c
x4: get bind 'c in get bind 'b 'd 'self
x5: do reduce [head insert tail to-path bind 'b 'd 'c]
]
]
]
Also if 'a is not "finished", its set-words are well defined while the 'a body
is executed. The delay of execution with a func is useful only if a/b/c would
be defined after 'e. In this case, there are others solutions.
> Regards,
>
> Cyphre
---
Ciao
Romano