[path] Accessing object data from dynamically created path!
[1/4] 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 ]]
I can access the data inside:
==  Now I create the same path in a word
>> 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
[2/4] from: gabriele:colellachiara at: 16-Sep-2004 16:11
Hi Coussement, On Thursday, September 16, 2004, 3:53:52 PM, you wrote: CC> Any suggestion ? Unfortunately this is a bit more difficult than it should. Try with: do reduce [p] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/
[3/4] from: cyphre:seznam:cz at: 16-Sep-2004 16:17
Hi Christophe, use: do reduce [p] or do compose [(p)] etc. AFAIK agressive path evaluation has been disabled in Rebol from core version 2.5.1 (http://www.rebol.com/docs/changes.html#section-5.2) regards, Cyphre
[4/4] from: Christophe::Coussement::mil::be at: 17-Sep-2004 9:39
Gabriele, Cyphre, It works :)) Thanks for your answers ! I tried several combinations, but obviously not this one :( Guess I have to become more imaginative. Christophe