DMD can implicitly convert class pointer to the bool. Is it bug or terrible feature?
Maxim Fomin
maxim at maxim-fomin.ru
Tue Nov 26 08:37:00 PST 2013
On Tuesday, 26 November 2013 at 08:23:15 UTC, bearophile wrote:
> Chris Cain:
>
>> If you really want to know when something is global when you
>> use it then use g prepended before your global names. That's
>> what a lot of people do to avoid this type of issue.
>
> That is named "relying on hand-managed name conventions for
> something that could be the job of the compiler type system".
>
> Bye,
> bearophile
Alternatively, one can start (enforce) using dot operator before
module scope objects :)
More information about the Digitalmars-d
mailing list