Compiler bug ?
Namespace
rswhite4 at googlemail.com
Fri May 17 08:08:18 PDT 2013
On Friday, 17 May 2013 at 14:35:35 UTC, Maxim Fomin wrote:
> On Friday, 17 May 2013 at 14:12:10 UTC, Namespace wrote:
>> I don't see where k comes from?
>
> I think the point is that it comes from nowhere. Compiler
> incorectly omits two errors from output: "Error undefined
> indentifier" and "template instance error instantiation". This
> should go to bugzilla.
>
>> And it's always a bad idea to prefix a variable with '__',
>> because this is reserved to the compiler.
>
> If it alwalys a bad idea, compiler should not accept such code.
Ok, not always, but mostly it's a bad idea.
More information about the Digitalmars-d-learn
mailing list