RE:Re: problem with CINT `**' extension

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Tue Dec 08 1998 - 12:44:46 MET


Pasha,

The power operator '**' and '@' are the original extention of CINT. These
operators are defined both for int and double. There is no error error check
in int version. Sinse, cint is there for some time, change has to be done 
carefully. If everybody agrees printing an error message in such case, I'll
do so. Or if everybody agrees eliminating power operator for 'int' , it is
even easier.

Masaharu Goto

--------------------------------------------------------------------
Dear Urs, you're definitely right, but this doesn't make the life safer 
-  a simple misprint could lead to the results being completely 
screwed up. I think there should be kind of check of argument validity range,
otherwise one gets:

root [28] 9999999999+9999999999
(int)(-2)

        -regards, pasha.
Urs Langenegger writes:
 > 
 > I think that has less to do with '**' but with (int). If I cast onto
 > (double), everything works fine for me.
 > 
 > Cheers,
 > --U.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET