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

[REBOL] Re: Linguistic influences

From: rotenca:telvia:it at: 13-May-2002 14:44

Hi Ladislav,
> parse ['a] [1 1 'a] ; == false
It seems to me there that this is a consequence of aggressive evaluation:
>> parse [a] [1 1 'a] ;== true
parse try to check a word and not a lit-word and we can't use a get-word in a parse block:
>> b: to-lit-word 'a ;== 'a >> type? b ;== word! >> type? :b ;== lit-word!
Now this check the word! a not the lit-word! 'a parse ['a] [1 1 b];== false this check the get-word :b not the value of b parse ['a] [1 1 :b];== false while in this case :b is used as a parse command parse ['a] [:b];== false Also 2.5 has this side effect in spite of the less aggressive evaluation. --- Ciao Romano