Alec Flett wrote:
>
> Everyone, I'm looking for more rules/advice/suggestions.. One thing I'm
> going to add is a section on types (mapping to C++, etc)
>
> http://www.mozilla.org/projects/xpcom/interface-rules.html
Something I thought about while reading the bug comments on deprecating
nsISupportsArray is returning objects that can support arbitrary
interfaces. e.g. from nsICollection:
nsISupports GetElementAt(in PRUint32 index);
void QueryElementAt(in PRUint32 index, in nsIIDRef uuid,
[iid_is(uuid),retval] out nsQIResult result);
Some discussion in this document about the pros and cons of these two
methods of returning objects of variable types and which is preferred
would be helpful.
--
Matt Kennedy