Real implicitly converts to float?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 23 09:15:27 PDT 2016


On 6/23/16 11:41 AM, Tofu Ninja wrote:
> On Thursday, 23 June 2016 at 15:25:49 UTC, Steven Schveighoffer wrote:
>> I disagree. I've used languages where converting floating point types
>> is not implicit, and it's painful. Most of the time, the loss in
>> precision isn't important.
>>
>
> Which is why a flag would be nice, for some applications the precision
> matters, for some it doesn't.

You can attempt to make a wrapper that prevents the conversion, probably 
the best that can be had.

-Steve


More information about the Digitalmars-d-learn mailing list