Birunthan Mohanathas wrote:

Note that due to technical details, the new macros will reject uses with zero 
variadic arguments. In such cases, you will want to continue to use the 
zero-numbered macro, e.g. NS_IMPL_ISUPPORTS0(nsFoo).
I can't help wondering who would need to implement only nsISupports. It can't be for the refcounting, because you can just use inline refcounting. And you've got no way of telling whether an arbitrary nsISupports is your object or not.

For example, nsMemoryReporterManager creates an object, hands it out, and assumes the one it got back was the one it handed out. (I picked that as an easy example that could technically be written safely using an nsSupportsPRInt64.)

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to