"R" suffix for reals

Steven Schveighoffer schveiguy at yahoo.com
Mon May 7 05:34:25 PDT 2012


On Sun, 06 May 2012 21:02:28 -0400, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Or maybe you initially have written:
> auto r = 1.1L;
> And later you want to change the number to 1.0 and you fix it like this:
> auto r = 1L;
> Now you have a little bug.

Or maybe you have initially written:

auto d = 1.1;
and later you want to change the number to 1.0 and you fix it like this:

auto d = 1;

Now you have a little bug.

To me the problem of floating pt. vs. integral is orthogonal to the size  
of the integral/floating point.

-Steve


More information about the Digitalmars-d mailing list