Hi Peter:
Thanks for the input. I thought of that. But there could be situations when
one needs to nest the same type of object. For e.g. a FOAF object (Friend of
a Friend) and I need to traverse the data of all the friends, etc. The
traversal is required to be done in both directions. i.e.
If person A -> knows person B -> knows person C then I should be able to
move from Person A to person C and if I give person C then I should be able
to know who has person C as the nested object.... I hope I am clear.

Regards
Sabu Francis

On 2/1/07, Peter Wood <[EMAIL PROTECTED]> wrote:
>
>
> Hi Sabu
>
> I think that you are making things very difficult for yourself by using
> the word Name in both the person and family objects. You probably can
> get it to work by clever use of bind ..but a much simpler approach is
> to change one of the "name"s. Your function then works:
>
> >> clanobj: make object! [clan: none name: "Ahem"]
> >> me: make object! [firstname: "Sabu" surname: "Francis"
> [    family: make clanobj [clan: "Vadukkut"]]
> >> getValInObject me 'clan
> == "Vadukkut"
> >> getValInObject me 'name
> == "Ahem"
> >> getValInObject me 'firstname
> == "Sabu"
>
> Regards
>
> Peter
>
>


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to