> IDL has no concept of object const-ness.

What about the "[const]" modifier (as shown in the examples below)?
I guess it is used only for nonscriptable stuff.

[scriptable, uuid(70b8f22d-135c-4c94-8044-1bd3238d0990)]
interface nsIContentViewer : nsISupports
{
....
  [noscript] void setBounds([const] in nsRectRef aBounds);
.....
}
[scriptable, uuid(d8c0a080-0868-11d3-915f-d9d889d48e3c)]
interface nsIFileSpec : nsISupports
{
 void fromFileSpec([const] in nsIFileSpec original);
...
};

> If you want somebody not to
> modify "B" in your example above, you shouldn't provide any mutation
> methods on the nsIB interface.

it makes sense



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

Reply via email to