[REBOL] Re: Parsing comment
From: greggirwin:mindspring at: 25-Sep-2002 16:53
Hi Dick,
Hopefully I won't just add more confusion here...
<< 10 + 10
means something to the Rebol interpretation process, but
10+10 does not have the same meaning, yet you say it can be
given different meaning. Are you implying that the expected operands
and the attributes of the operands to a built-in primitive function can be
respecified? Or are you saying "10+10" can be given new meaning as if
though a user-defined function? Help here please? >>
If we take the numbers out of the equation :) to avoid syntactical issues,
you can do this (because + is a valid character in words):
>> a: 1
== 1
>> b: 2
== 2
>> a + b
== 3
>> a+b: 4
== 4
>> a+b
== 4
So, "a+b" is not the same as "a + b". Now, you could also change the
operation of +, like this:
>> set '+ :*
>> 1 + 3
== 3
But, AFAIK, you can't alter the operands that an operator operates upon. :)
--Gregg