class A
{
   void hiddenFunction(int x);
}

class B : A
{
   void hiddenFunction(long x);  // does not override A.hiddenFunction!
}

B b = new B;
A a = b;

b.hiddenFunction(1); // ok, does not call A.hiddenFunction
a.hiddenFunction(1); // error, hiddenFunction exception thrown.

At least, this is what it used to mean.  I think Andrei wanted this to be a compile-time error, but I'm not sure if it is yet.

-Steve


From: Alex Rønne Petersen <xtzgzorex@gmail.com>
To: D's runtime library developers list <d-runtime@puremagic.com>
Sent: Friday, May 11, 2012 3:13 PM
Subject: [D-runtime] What is a hidden function?

Hi,

I just noticed the onHiddenFuncError(Object o) function. However, I
can't seem to figure out what on earth a hidden function is. Anyone
know?

Regards,
Alex
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime