Question/request/bug(?) re. floating-point in dmd
Walter Bright
newshound2 at digitalmars.com
Thu Nov 7 12:24:51 PST 2013
On 11/6/2013 7:07 AM, Iain Buclaw wrote:
> double y = cast(float) x; ? :o)
I don't like overlaying a new meaning onto the cast operation. For example, if
one was using it for type coercion, that is different from wanting precision
reduction. There'd be no way to separate the two effects if one desires only one.
An intrinsic function solves the issue neatly and cleanly.
More information about the Digitalmars-d
mailing list