[bitc-dev] Primary type arithmetic
cap at isg.axmor.com
Sat Feb 5 06:47:14 EST 2005
Jonathan S. Shapiro wrote:
>On Fri, 2005-02-04 at 14:22 -0800, Shawn Garbett wrote:
>>How about: ring+, ring-, etc.
>And then the others would be tip+, tip-, etc?
C# uses "checked" keyword for this case it also uses as context
operator. All arithmentic operators in the scope of this operator are
interpreted in the same way. See also
So syntax may be (checked+ a b) or whe can make it like in C# (checked
(+ a (unchecked (* b c))). Later form is more convenient for non-trivial
For default I would like checked version. If performance is a concern
for some peice, it may be optimized.
More information about the bitc-dev