Strange result with nextUp for reals

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Feb 16 13:49:34 PST 2014


On 2/16/14, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> Any idea why the results are different?

Interestingly the literal versions end up calling nextUp which takes a
double rather than a real. So nextUp(1.0) calls the double overload,
nextUp(num) calls the real overload. Mystery solved.


More information about the Digitalmars-d-learn mailing list