Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] [path] Accessing object data from dynamically created path!

From: Christophe::Coussement::mil::be at: 16-Sep-2004 15:53

Hi list, I have this little problem I could solve in another way, but I could not find an answer to this one: Let's say I have an object:
>> o: context [x: [y [2]]]
I can access the data inside:
>> o/x/y
== [2] Now I create the same path in a word
>> p: 'o/x/y
== o/x/y
>> p
== o/x/y
>> type? p
== path! How could I access the data into object! 'o using this path?
>> reduce :p
== o/x/y I tried to bind it:
>> bind p/1 'o
== o but no result ...
>> reduce :p
== o/x/y Any suggestion ? TIA ==christophe