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

[REBOL] Re: Apparent newbie question

From: antonr:iinet:au at: 21-Nov-2003 18:09

Rebol is strict about left to right evaluation. I remember Holger commenting about in-fix operators (operators with two surrounding arguments) that when you see an expression like this: 1 > 2 then you need to imagine that the ">" moves to the front:
> 1 2
(to be a prefix operator.) Now it looks like any other function. So in the expression: length? test-block < 4 you should imagine this: length? < test-block 4 Now rebol will evaluate like this: length? (< test-block 4) which leads to the error: ** Script Error: Expected one of: block! - not: integer! Who expected it? The < operator, of course. Anton.