Should you be able to initialize a float with a char?
claptrap
clap at trap.com
Fri May 20 08:19:27 UTC 2022
On Friday, 20 May 2022 at 03:27:12 UTC, Walter Bright wrote:
> If it's bad that 0 implicitly converts to a bool, then it
> should also be bad that 0 implicitly converts to char, ubyte,
> byte, int, float, etc. It implies all implicit conversions
> should be removed.
Why should that be so? Why do you take for granted that whatever
happens to bool should happen to ubyte, int etc...
More information about the Digitalmars-d
mailing list