On Tuesday, 22 September 2015 at 22:09:59 UTC, Ola Fosheim Grostad wrote:
On Tuesday, 22 September 2015 at 21:25:06 UTC, deadalnix wrote:
You can call super, so you need the virtual dispatch.

I understand Ali's argument about setting local vtable before calling external functions in C++, but other than that it should be sufficient to set vtable in the new() or equivalent topmost call?

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.

However, constructor need to do the virtual dispatch as one can call super.

Reply via email to