[REBOL] Re: Binding operators
From: g:santilli:tiscalinet:it at: 8-Sep-2001 20:51
Hello Karl!
On 08-Set-01, you wrote:
KR> When using bind on code with operators (and, xor, etc) the
KR> operators *sometimes* cause a script error. Below is code
KR> which demonstrates the problem. Can anyone explain this?
I'm afraid infix operators are almost a kludge in REBOL. Words
such as +, *, AND etc. are probably handled before the actual
execution.
Personally, I would vote for having prefix notation only, and a
dialect that handles precedence etc. for doing math (I posted an
example of this on the list some time ago --- I can repost if
people is interested, or maybe I can add it to the script
library...).
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/