Re: K.I.S.S. Factor (Re: Numerics)
Wolfgang Jansen <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.smalleiffel |
|---|---|
| Organization | University of Potsdam, Institute of Informatics |
| Message-ID | <[email protected]> |
Dominique Colnet wrote: > Wolfgang Jansen wrote: > >> Dominique Colnet wrote: >> >>> Greg C wrote: >>> >>>> What if I write "000000001"? That doesn't look like an eight-bit >>>> integer value >>> >>> >>> >>> You are right that in such a situation, the compiler should warn the >>> user that leading 0 are not significant and that 000000001 is still >>> an INTEGER_8. Anyway, the choice we made avoids information loss. >> >> >> >> That's not true for floating point numbers. > > Yes, you are right, but I was speaking of INTEGER. > >> >> Among other's, this means that the SE compiler is applies different >> strategies. > > Yes, but INTEGER is not REAL hence the different strategy. Sorry, I don't understand. Do you speak about different strategies beteen INTEGER and REAL? I was speaking about different strategies for REAL alone: one with and one without analising the context. WJ