Compiler bug ?
Ali Çehreli
acehreli at yahoo.com
Sat May 18 15:27:07 PDT 2013
On 05/18/2013 11:50 AM, bearophile wrote:> Timon Gehr:
>
>> It is trivial to catch them in the parser.
>
> So the question is: is it right to catch them all? :-)
I don't think so. Double underscores are reserved for the
"implementation", which includes the standard library. I don't think the
compiler should know that it is compiling something that is part of Phobos.
It could even be a mixin that has such a variable that is implemented in
Phobos. There is nothing wrong in reminder each other that a name is
reserved. :)
Ali
More information about the Digitalmars-d-learn
mailing list