core.math.rndtonl: invalid return type or description?
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 19 01:04:49 PDT 2017
core.math.rndtonl is declared as this:
extern (C) real rndtonl(real x);
yet it's description says: "...If the integer value of x is greater than
long.max, the result is indeterminate."
it looks like it either should return `long`, or this part of description
was copypasted from `rndtol`. and if it *really* has such limitation, but
returns `real`, i think it should be clarified in documentation, 'cause
right now it is somewhat confusing.
More information about the Digitalmars-d
mailing list