I'm doing some toying with XPCOM; in particular I am trying to convert
several existing C++ classes to XPCOM components. Could you tell we
what is the XPCOM's way to deal with constness?

for example, if I have the following C++ classes:
class B;
class A
{
public:
virtual int compute(const B&) const = 0;
};

How do I enforce constness of A and B in XPCOM IDL?
Obviously the following code simply discards all the constness.
interface iB;
[scriptable, uuid(2be7759a-efce-4830-9fd6-426e3c9776e4)]
interface iA : nsISupports
{
int compute(in iB);
}

XPIPL has the "const" keywords but it seems to be used only for
integer constants declarations.
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to