[haiku-development] Re: Linking problem when removing reserved virtual slots

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 21 Aug 2017 07:30:44 +0200

On Sun, Aug 20, 2017 at 11:56:28PM +0200, Ingo Weinhold wrote:

This works pretty much the same way for a derived class: The compiler also
creates code for it that creates its vtable. Unlike one might think, the
vtable is not initialized by copying the entries from the base classes'
vtables and replacing the slots for overridden methods (that would save us a
lot of trouble). Instead the vtable is directly filled with pointers to the
functions that should be called, as known at the compile time of that class.

Thanks, this is the information I was missing.

May I use your e-mail to complete that article on the website?

-- 
Adrien.

Other related posts: