Hi Pierre,

Sorry if I misunderstood your post. When you said:

PJ> path phrases ([ ] /n) *
PJ> * where n = any integer; m = any integer

I interpreted "n = any integer" as index access only, by number, not
by named value. 

>>> block: [name1: "Gregg" phone1: #208.461 name2: "Other Smarter
PJ>  Gregg"]
PJ> == [name1: "Gregg" phone1: #208.461 name2: "Other Smarter Gregg"
PJ> ]
>>> Smarter-Gregg-Block: make object! block
>>> Smarter-Gregg-Block/name2
PJ> == "Other Smarter Gregg"

PJ> NOW, you can use path retrieval on EXPLICIT aspects of the
PJ> prototype ("object") using path-words

I guess I'm still missing your point. You can use unique names in
blocks as well as objects.

>> block: [name1 "Gregg" phone1 #208.461 name2 "Other Smarter Gregg"]
== [name1 "Gregg" phone1 #208.461 name2 "Other Smarter Gregg"]
>> block/name1
== "Gregg"
>> block/name2
== "Other Smarter Gregg"

OTOH, you can't have multiple "fields" with the same "name" in an
object, which you can do in a block; tradeoffs.

-- Gregg

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

Reply via email to