[E-Lang] Operators #5: Additive operators
Tyler Close
tclose@oilspace.com
Mon, 09 Apr 2001 10:00:32 +0100
At 08:09 PM 4/6/01 -0700, Mark S. Miller wrote:
>The other "normal" category is "Displacement Behavior", currently
>exemplified only by characters. In displacement behavior, when t1 and t2
>are both elements of the type, and i is an integer,
I believe here you are talking about:
'c' + 3 == 'f'
Is there any reason why "displacement behaviour" shouldn't use the "<<"
(ie: shift) operator? So:
'c' << 3 == 'f'
Doing this would allow us to use the stricter definition of "+" that many
on the list seem to want.
Tyler