virtual-by-default rant

F i L witte2008 at gmail.com
Fri Mar 23 06:47:23 PDT 2012


Marco Leise wrote:
> "the D compiler knows all of the class hierarchy when 
> generating code"
> This is just wrong, and if that was the base for deciding on 
> virtual as default, I believe it is natural to think about it 
> again.

Yes, further reading has led me to believe that Manu is right in 
his request for a virtual keyword (at least). Final by default is 
a great concept on paper, but unless it's possible across Lib 
boundaries (which I'm not sure it is) then to me it does seem a 
bit backwards given that efficiency is a key feature of D and 
most programmers are already used to fixed by default anyways.




More information about the Digitalmars-d mailing list