"R" suffix for reals

Manfred Nowak svv1999 at hotmail.com
Mon May 7 03:20:25 PDT 2012


Walter Bright wrote:

> never encountered a problem with it

Please recall the famous `fori=' vs. `for i=' mistake:

one unintentional changed or added character might change the meening 
of the code but compile undetected:
|  auto x = +1L;
|  auto y = -1L;
|  auto z = .1L;

Whereas
|  auto z = .1R;
would need two changes to the intention.

Because of `auto' and `real', which both still aren't in C, D might 
need to be more picky.

-manfred


More information about the Digitalmars-d mailing list