Should you be able to initialize a float with a char?

Walter Bright newshound2 at digitalmars.com
Thu May 19 18:20:26 UTC 2022


On 5/19/2022 7:33 AM, Steven Schveighoffer wrote:
> I hope we are not depending on the type system to the degree where a bool must 
> be an integer in order to have this kind of optimization.


Does that mean you prefer:

     a = 3 + cast(int)(b < c) * 5;

? If so, I don't see what is gained by that.


More information about the Digitalmars-d mailing list