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

[REBOL] Re: Binding operators

From: karlr20:home at: 9-Sep-2001 22:48

On Sunday 09 September 2001 01:26, Frank Sievertsen wrote:
> -> When there is an operator-word, but it does not hold an operator, the > interpreter will throw an error.
If the interpreter always throws an error when an operator word is not actually an operator then the 'and' argument to the reportA function should fail as well, should it not? I've tried another test and it looks like the operator word will only work as the first argument to a function. On Saturday 08 September 2001 11:51, Gabriele Santilli wrote:
> I'm afraid infix operators are almost a kludge in REBOL. Words > such as +, *, AND etc. are probably handled before the actual > execution.
Yeah, that's what I've done with my own scripting language. I move the operator to make it prefix for the interpreter. REBOL must work a little differently otherwise none of the report functions would work, but perhaps the infix fiddling interacts badly with the argument fetching. I guess I should report this as a bug. -Karl