You're right!  But I didn't discover that until after I sent that email, &
didn't realize that it would fix my problem. (I discovered it with
experiments in the console, not my actual script :)).  Now let me reiderate.

>> a: make object! [
[    b: make object! [
[        c: "object"
[        ]
[    d: make object! [
[        e: make object! [
[            f: b/c
[            ]
[        ]
[    ]
>> a/d/e/f
== "object"

Hmm.. seems to find the nearest declaration of a word by reversing through
the hierarchy....

>> a: make object! [
[    b: make object! [
[        c: "object"
[        ]
[    d: make object! [
[        b: make object! [
[            c: "second object"
[            ]
[        e: make object! [
[            f: b/c
[            ]
[        ]
[    ]
>> a/d/e/f
== "second object"

Am I not right?  Is there somehow to reference to first 'b not the nearest?

Thanks!!
Ammon


----- Original Message -----
From: "Gregg Irwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 10, 2001 8:58 PM
Subject: [REBOL] Re: Backwards Navigation on path


> Hi Ammon,
>
> In this case, it should be simple:
>
> >> a: make object! [
> [            b: make object! [
> [                        c: "Object"
> [                    ]
> [            d: make object! [
> [                        e: b/c
> [                    ]
> [        ]
> >> a/d/e
> == "Object"
>
> You don't need to navigate back up the path because b and d are in the
same
> context (someone correct me if I'm wrong please).
>
> --Gregg
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to