I'm considering (and have written the code after chatting with Pav) to add
some functionality to nsVoidArray/nsSupportsArray:
NS_IMETHOD_(PRBool) InsertElementsAt(nsISupportsArray *aOther, PRUint32 aIndex);
NS_IMETHOD_(PRBool) RemoveElementsAt(PRUint32 aIndex, PRUint32 aCount);
The semantics should be pretty obvious. One of the reasons to do this is
to support/improve doInsertBefore() in nsGenericElement/etc; plus they make
the interface to a primary datatype of Mozilla more complete and flexible.
(Yes, I know they're using PRBool returns; so is everything else in those
classes.)
You can see the code in the latest patch for bug 90545.
--
Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94)
[EMAIL PROTECTED]