<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>class A</span></div><div><span>{</span></div><div><span> void hiddenFunction(int x);<br></span></div><div><span>}</span></div><div><br><span></span></div><div><span>class B : A<br></span></div><div><span>{</span></div><div><span> void hiddenFunction(long x); // does not override A.hiddenFunction!<br></span></div><div><span>}</span></div><div><br><span></span></div><div><span>B b = new B;</span></div><div><span>A a = b;</span></div><div><br><span></span></div><div><span>b.hiddenFunction(1); // ok, does not call A.hiddenFunction</span></div><div><span>a.hiddenFunction(1); // error, hiddenFunction exception thrown.</span></div><div><br></div><div>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.</div><div><br><span></span></div><div><span>-Steve<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Alex Rønne Petersen <xtzgzorex@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> D's runtime library developers list <d-runtime@puremagic.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, May 11, 2012 3:13 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [D-runtime] What is a hidden function?<br> </font> </div> <br>
Hi,<br><br>I just noticed the onHiddenFuncError(Object o) function. However, I<br>can't seem to figure out what on earth a hidden function is. Anyone<br>know?<br><br>Regards,<br>Alex<br>_______________________________________________<br>D-runtime mailing list<br><a ymailto="mailto:D-runtime@puremagic.com" href="mailto:D-runtime@puremagic.com">D-runtime@puremagic.com</a><br>http://lists.puremagic.com/mailman/listinfo/d-runtime<br><br><br> </div> </div> </blockquote></div> </div></body></html>