DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

Neia Neutuladh neia at ikeran.org
Mon Nov 12 21:01:36 UTC 2018


On Mon, 12 Nov 2018 20:34:11 +0000, Neia Neutuladh wrote:
> enum : int { a = 0 }
> enum A : int { a = 0 }
> f(a);   // calls the int overload f(A.a); // calls the bool overload
> 
> Tell me more about this "consistency".

Filed issue 19394. (Sorry for spam.)


More information about the Digitalmars-d-announce mailing list