David Brittain wrote:

> var interface = plugin.QueryInterface(Components.interfaces.IPlugin);
> 
> In this case how does javascript know which IPlugin to use, given that
> there may be a number of interfaces called IPlugin. As I understand it
> the namespace feature in XPCOM is not implemented, therefore is there
> not a problem with multiple vendors providing components which have the
> same interface names. Is there any way to get around this?

In C++, the parameter to QueryInterface is a UUID (universally unique
ID), and thus does not need a namespace.

For JavaScript, this might be a bit "looser"...

-- 
Implementation: n., the fruitless struggle by the talented and underpaid
                to fulfill promises made by the rich and ignorant.

Reply via email to