www.digitalmars.com         C & C++   DMDScript  

digitalmars.dip.ideas - Deprecate implicit conversion between signed and unsigned integers

https://forum.dlang.org/post/xwoyfuhotvgapjmcribk forum.dlang.org

On Monday, 13 May 2024 at 19:51:58 UTC, Steven Schveighoffer 
wrote:
 I think yes, we should ban signed/unsigned conversions, but I 
 also think implicit conversions when VRP has validated all the 
 values are representable is fine (e.g. `ubyte` should 
 implicitly convert to `short` or `int`). This should cut down 
 on the false positives.

 -Steve
I like this.
Mar 24