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

[REBOL] Path evaluation

From: krobillard:san:rr at: 1-May-2003 20:49

Hi all, Is there a simple, general purpose path evaluator in REBOL? As an example, how would you go about getting the value 22 from p in the following code: obj: context [ var: 22 ] p: 'obj/var After much fiddling I came up with this: a: get first p x: get in a second p Of course, this assumes that the path begins with an object and has a length of 2. Is there some method other than deconstructing the path manually? It seems something simple like 'do p' should work. -Karl Robillard