1 matches bool, 2 matches long
Rob T
alanb at ucora.com
Tue Apr 30 10:43:01 PDT 2013
On Tuesday, 30 April 2013 at 14:47:14 UTC, Steven Schveighoffer
wrote:
>
> Yes, just like it's better matching to long than string.
>
> -Steve
More precise language is to state that there is no "better match"
and long should simply not ever match with bool because long is
not the same thing as bool, ie, bool should not be seen as an
integral type because it clearly isn't because it does not behave
like one and has a completely different purpose in the language
otherwise there'd be no need for a bool to have special
differences that the other integrals do not have.
How do we get the problem fixed? The sooner it is done the
better, otherwise we'll be forever stuck with subtle bugs and D
programmers complaining about it for the rest of eternity.
--rt
More information about the Digitalmars-d
mailing list