[M3devel] Integer literals

Jay K jay.krell at cornell.edu
Tue Jan 12 02:18:26 CET 2010


>> One thing I've really struggled with over the introduction of LONGINT is
>> the need for distinct literal forms. This strikes me as odd, since
>> literals are really just ways of writing values, rather than stating
>> anything about how they should be represented.
>> (Yes, I know that the REAL/LONGREAL/EXTENDED literals are all distinct,
>> but they really do have incompatible value representations).
>
> I agree, the need for distinctly typed literals is much greater for the
> floating types than the integer types, because they can't be viewed
> as having overlapping value sets in any reasonable way.

 
Huh? This seems to me to be directly opposite of the truth.
LONGREAL is a strict superset of REAL in what it can represent.
There is *complete* overlap.
Am I really mistaken here?
Floating point is indeed very wierd, but it isn't this wierd.
Right?
 
 
 - Jay




---------------------------------------- 		 	   		  


More information about the M3devel mailing list