Do we have a preference between using explicitly-sized arguments (e.g.
PRInt32) and implicitly-sized arguments (e.g. long) in XPIDL?

It seems to me that |long| is a particularly bad typename, because it
means "32-bit integer" in IDL and means "64-bit integer" in C on many
platforms.  "long" also means 64-bit integer in Java, for what little
it's worth.

Is there any reason for us not to use PRInt32 instead of |long| in new
code?  Should reviewers r- patches which use PRInt32 and friends?  If
so, can we simply disallow PRInt32 and company, so there's no
temptation?

(I know WebIDL uses |long|, which is a damn shame.  But XPIDL is
already so different from WebIDL, I'm not sure that consistency with
WebIDL is a prime concern here.)

-Justin
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to