Re: K.I.S.S. Factor (Re: Numerics)
Dominique Colnet <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.smalleiffel |
|---|---|
| Message-ID | <[email protected]> |
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. -- -------------------------------------------------------------- [email protected] -- IUT (Nancy 2) -- INRIA Lorraine http://SmartEiffel.loria.fr -- The GNU Eiffel Compiler POST: Loria, B.P. 239,54506 Vandoeuvre les Nancy Cedex, FRANCE Voice:+33 0383913140 Mobile: +33 0665362381 Fax:+33 0383581701