4 ms·
COM isn't, and doesn't require interface inheritance. COM is based on registering a binary object which quacks in a certain way, under the right GUID symbol so
by kazinator 4y ago
COM isn't, and doesn't require interface inheritance. COM is based on registering a binary object which quacks in a certain way, under the right GUID symbol so it can be found.
- pjmlp 4y agoIt doesn't require interface inheritance, it supports interface inheritance. The lookup mechanism is a implementation detail, just like in any OOP language with interfaces.
- kazinator 4y agoCOM is an ABI, not a programming language. There is literally nothing in COM that does interface inheritance. The ABI for in-process COM is such that when you use Microsoft C++, you can use certain abstract base classes. Your objects will be binary compatible with COM.
- pjmlp 4y agoCOM is a programming language model exposed as ABI, with language projections, successfully used for 25 years across multiple languages. Basically it is like we are discussing how vtables work over here.