February 16, 2014 Re: Strange result with nextUp for reals | ||||
---|---|---|---|---|
| ||||
On 2/16/14, Andrej Mitrovic <andrej.mitrovich@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.
|
Copyright © 1999-2021 by the D Language Foundation