DMD can implicitly convert class pointer to the bool. Is it bug or terrible feature?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Nov 24 10:41:35 PST 2013
On 11/24/13 10:31 AM, bearophile wrote:
> Regarding Facebook, I presume that Gcc flag was applied to plenty of
> already written code. If you apply it since the start of a new project
> perhaps (probably) its effects are different. This detail is important,
> because lot of D code is yet to be written.
This is just speculation. It would have been helpful if enabling
-Wshadow uncovered at least a few bugs. Instead, it just asked for a lot
of code to be changed for no visible benefit.
Andrei
More information about the Digitalmars-d
mailing list