float init 0 request
H. S. Teoh
hsteoh at qfbox.info
Thu Aug 20 04:28:56 UTC 2026
On Wed, Aug 19, 2026 at 05:37:53PM -0700, Walter Bright via Digitalmars-d wrote:
> On 8/19/2026 2:17 PM, Steven Schveighoffer wrote:
[...]
> > The second should not compile. It should be an error to implicitly
> > promote char to dchar. It's a nonsense conversion that is allowed
> > implicitly.
>
> Didn't H. S. Teoh argue that char should implicitly convert to wchar?
[...]
I never argued such a thing. I was arguing *against* implicitly
converting any char type to an integer type.
Yes, it's convenient to be able to do char math without casts, but the
kind of bugs that crop up with inadvertent implicit conversion of char
types to int is much more costly than this minor convenience.
T
--
Programming is not just an act of telling a computer what to do: it is also an act of telling other programmers what you wished the computer to do. Both are important, and the latter deserves care. -- Andrew Morton
More information about the Digitalmars-d
mailing list