On 11/26/10 9:30 AM, Bruno Medeiros wrote:
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?
I think he was worried about the compiler becoming too restrictive.
Andrei