----- Original Message ----- > Ehsan Akhgari wrote: > > There might be times where you want the concrete type of the thing > > that your ctor function returns to be opaque, in which case it > > might > > make sense to go with the NS_NewFoo style of method. > > That might even apply here, since my understanding was that mutable > arrays need to be threadsafe when created off-main-thread and > cycle-collected when created on-main-thread, or some such?
That's correct. IMHO, the current state of affairs for bug 792169 is a little ugly, insofar as you do: #include "nsArray.h" ... nsCOMPtr<nsIMutableArray> = nsArray::Create(); ... -Nathan _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform