[help]operator overloading with opEquals in a class

Bruno Medeiros brunodomedeiros+spam at com.gmail
Fri Nov 26 07:30:00 PST 2010


On 03/11/2010 20:33, Andrei Alexandrescu wrote:
> 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
>

Indeed! Is this part of the spec, or has Walter not agreed to it?

-- 
Bruno Medeiros - Software Engineer


More information about the Digitalmars-d mailing list