WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
On May 8, 2012, at 12:19 PM, David Chisnall wrote:
although the old behaviour is still consistent with OS X (return results greater than the size of a pointer are undefined).
I am pretty sure that’s not true anymore, although I am not sure whether I read so in the Apple docs or in comments by Apple runtime engineers on their mailing lists (I have a feeling Greg Parker has brought this up.)
I can say that the exact code I posted before works reliably in 32-bit processes in OS X 10.7 and iOS 5. That’s why I’m only running into this now — I haven’t had any trouble with 64-bit return values until trying to run my code on GNUstep.
OS X and iOS have implemented 64-bit integer return as 0 since time immemorial.
With current OS and tools, every return type is now zero-filled.