Jon Smirl wrote:

> I know about nsIClassInfo but adding getInterfaces to nsISupports would make
> it universal. nsIClassInfo is also a more complicated interface.  You could
> probably build an interface map and generate queryInterface and
> getInterfaces automatically via macros with very little overhead since they
> use the same data.

Stop it Jon! You're making sense!

Seriously, I think this is how the classinfo macros work to begin with
and keeping it there keeps *every* interface one vtable slot shorter.

I think you're on the right track though in that an IDispatch style
typeinfo discovery mechanism would be nice.

-rick


Reply via email to