Hi all,

I am writing a JS component and need to inherit from an existing cpp base class.

Is it possible to achieve this in IDL? I had thought that the following syntax would work:

interface nsIMyJsInterface : nsIToInheritFrom {
}

Functionally I am trying to achieve the the same as this cpp:

class nsMyJsInterface : public nsToInheritFrom,
                        public nsIAnotherToInheritFrom

{

I'm sure I read somewhere something about IDL only supporting one class inheritance as well, so is there a way of achieving this in JS at all?


Any thoughts or guidance of this would be much appreciated.

Cheers,

N


------------------------------------------------------------------------- The difference between programming and engineering is that engineers will lie, cheat and steal, programmers will not. ------------------------------------------------------------------------- _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to