Has any consideration been given to adding getInterfaces() to nsISupports as
a required interface? There isn't a great need for it today but in the
future things like a SOAP server need it. Another application is writing
extension functions for XSLT. Adding this support is one of those cases
where it is better to do it now than a couple of years from now when
thousands of components exist without the support.

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.

void getInterfaces(out PRUint32 count, [array, size_is(count), retval] out
nsIIDPtr array);

--
Jon Smirl
[EMAIL PROTECTED]





Reply via email to