mattn/go-ole — pull request #44 by ziuchkovski (2014-12-16 18:57:18+00:00)
Title: Model COM class inheritence (help DRY-up code)

This PR attempts to remove duplication by modeling the COM class inheritance.

It works by exposing the vtable on the base IUnknown class as an opaque *interface{}. Each COM class then implements a VTable() func that casts the opaque pointer to that class's specific vtable type. The vtables themselves embed their parent class's vtable definition, which removes duplication.

The result is the ability to extend parent vtables without re-listing the parent methods, and the ability to call parent methods without re-defining the methods.