DMD can implicitly convert class pointer to the bool. Is it bug or terrible feature?

deadalnix deadalnix at gmail.com
Tue Nov 26 01:14: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

http://i.imgur.com/H838hA9.jpg


More information about the Digitalmars-d mailing list