[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How should ObjC encode 'long'?
From: |
Ziemowit Laski |
Subject: |
How should ObjC encode 'long'? |
Date: |
Mon, 26 Jan 2004 19:09:54 -0800 |
Currently, ObjC encodes 'long' as 'l' (and 'unsigned long' as 'L'), but
only if
sizeof(long) == sizeof(int). On LP64 targets, where sizeof(long) == 2
* sizeof(int),
'long' and 'unsigned long' get encoded as 'q' and 'Q', respectively,
instead.
Personally, I tend to think that this is broken, and that long should
always be 'l',
regardless of its size. However, I can also see an ABI argument (esp.
in the context
of distributed objects) that would lead to the opposite conclusion.
What do you all think?
Thanks,
--Zem
--------------------------------------------------------------
Ziemowit Laski 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group Cupertino, CA USA 95014-2083
Apple Computer, Inc. +1.408.974.6229 Fax .5477
- How should ObjC encode 'long'?,
Ziemowit Laski <=