Problem with integral promotions

Guillaume Piolat via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 22 12:51:01 PDT 2017


On Saturday, 22 July 2017 at 10:51:05 UTC, ketmar wrote:
> Walter Bright wrote:
>
>> 2. Codify existing practice, since it has been that way 
>> forever. Not matching C has caused problems, see 16997 and 
>> 17637. It may cause more serious silent problems for people 
>> converting C code to D code.
>
> i'd say "codify, and add warning".

I'd vote for the ketmar solution if workable.

Another argument for this is that C code that has already been 
converted to D, and is currently silently broken, would benefit 
from a new warning as a way of gathering attention. However 
matching C promotion might make this code work too but silently.


More information about the Digitalmars-d mailing list