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

[REBOL] Re: Path evaluation

From: smith:munsterman at: 2-May-2003 9:25

Hi Folks, Why not make it easier and clearer?
>> obj: context [ var: 22 ] >> print obj/var
22 Or if you need p later:
>> obj: context [ var: 22 ] >> p: 'obj/var >> print obj/var
22 Or am I missing something? -Jeff On Fri, 2 May 2003 08:54:48 +0200, Ladislav Mecir <[lmecir--mbox--vol--cz]> wrote:
> Hi Karl, > > you wrote: > > obj: context [ var: 22 ] > p: 'obj/var > >> It seems something simple like 'do p' should work. > > If you want to use the "basic" 2.5.5 method, you can do as follows: > > do reduce [:p] ; == 22 > > this version will work even in old interpreter versions, because it uses > the get-word version of 'p. > > HTH > -Ladislav > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes. >
-- -Jeff Smith 770-565-5462