Stroustrup is disappointed with D :(

Ola Fosheim Grostad via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 22 22:44:58 PDT 2015


On Tuesday, 22 September 2015 at 22:14:56 UTC, deadalnix wrote:
> It is part of the .init, so the compiler would set it BEFORE 
> calling the constructor. constructor can then call each other 
> and rely on the fact that the vtable is initialized.

We were discussing  the cost if doing it like c++, where virtual 
calls during construction acts as if the object isn't subclassed. 
That way all object local member function calls can be 
devirtualized and inlined. In D we have to use the init method 
you mention.


More information about the Digitalmars-d mailing list