[help]operator overloading with opEquals in a class

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Nov 3 13:33:08 PDT 2010


On 11/3/10 7:07 AM, zhang wrote:
> This code belown can be compiled with DMD 2.050. However, it throws an error message:
> core.exception.HiddenFuncError: Hidden method called for main.AClass
>
> I'm not sure about whether it is a bug. Thanks for any help.
[snip]

That hidden functions are signaled during run time and not compile time 
is a misunderstanding between design and implementation. There should 
not be a HiddenFunc exception and the compiler should just refuse to 
compile the program.


Andrei



More information about the Digitalmars-d mailing list