On Sunday, 18 March 2012 at 03:27:40 UTC, bearophile wrote:
F i L:
I'm a bit confused. Reading through the virtual function's
docs (http://dlang.org/function.html#virtual-functions) it
says:
"All non-static non-private non-template member functions are
virtual. This may sound inefficient, but since the D compiler
knows all of the class hierarchy when generating code, all
functions that are not overridden can be optimized to be
non-virtual."
This is so much theoretical that I think this should be removed
from the D docs. And to be put back when one DMD compiler is
able to do this. Otherwise it's just false advertising :-)
Bye,
bearophile
Dammit, I was afraid someone would say something like that. Well
at least it's a good goal. It is a bit of false advertising
though, honestly it should just be marked "implementation in
progress" or something like that.