C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Extensible vtables -- Ensuring ABI isn't broken

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Sat, 17 Feb 2024 23:15:37 +0000
On Sat, Feb 17, 2024 at 10:58 PM Frederick Virchanza Gotham wrote:
>
> For example, the vtable for
> IKeyboard could instead be:
>
> -------------------------------
> | address of IDevice vtable |
> -------------------------------
> | address of GetKeyboardState |
> -------------------------------
>
> So then we could add more virtual functions to IDevice without it
> affecting the offset of 'GetKeyboardState'.


Never mind, that was a half-baked idea and doesn't account for how
you'd convert an IKeyboard* to an IDevice*.

I'll think it out a bit further and post again.

Received on 2024-02-17 23:15:48