tacitcoder
Re:The power of interoperability: Why objects are inevitable (2013) [pdf]
on Wednesday May 15, 2024 @08:18AM (#40365927)
You can take a look at this discussion[0] where Casey Muratori designed something like that where communication is done by opcodes, and packets instead of vtables.
Note: search for "raw_device_operation" if you want to get to the code, but reading the whole thing is very worth it.
[0] https://github.com/cmuratori/misc/blob/main/cleancodeqa-2.md