System programming in D (Was: The God Language)

Walter Bright newshound2 at digitalmars.com
Thu Jan 5 13:34:49 PST 2012


On 1/5/2012 3:58 AM, Manu wrote:
> How is this possible, when all functions are virtual, without whole program
> optimisation?

Only public non-final class member functions are virtual. Furthermore, as in 
C++, the compiler can sometimes determine that a virtual function is being 
called directly, and will do so (or inline it).


More information about the Digitalmars-d mailing list