On Tue, Jul 06, 2004 at 01:53:47PM +0100, Neil Stansbury wrote:
> I had assumed I could achieve functionally the same in IDL to allow my 
> Javascript Interface to inherit from an existing IDL interface.

Inheriting from IDL interfaces is possible:

#include "base_interface.idl"

interface my_interface : base_interface {
  // Methods/Attributes here
};


You'll notice that basically all interfaces use this already, to inherit
from nsISupports. Random example:
http://lxr.mozilla.org/seamonkey/source/xpcom/threads/nsIEnvironment.idl#40


Note: I don't think that multiple inheritance is supported in IDL, i.e.
you can only inherit from one other interface.

-- 
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to