So why double to float conversion is implicit ?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Oct 22 14:59:41 UTC 2017


On 10/22/17 9:41 AM, User wrote:
> Is there a list of such quirks or gotchas in dlang?
> 
> The ones I know of are
> 
> 1. Implicit conversion from double to float
> 
> 2. Integer division results in integer result truncation the fractional 
> part.

These are not gotchas, as TDPL explains. One unpleasant related gotcha 
is implicit conversions across signedness and comparison of integral 
types with different signedness. -- Andrei



More information about the Digitalmars-d mailing list