| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jan 25, 2008, at 9:47 PM, Charlie Dickman wrote:
For what it's worth: 1) You can never trust the default size of an implicit type. "unsigned u" can mean different things in different compilers. You have no way to expect what the bit layout is going to be, nor any reasonable expectation of the results of bitwise manipulation. Far better to use a type you know the size of and that doesn't vary according to your target architecture. That's why Apple supplies UInt16, UInt32, UInt64 etc. as base types. 2) You can never trust the order of evaluation of _expression_ subelements. va_arg(ap, int), va_arg(ap, int) are executed in whatever order the compiler feels like at the time. You must break these into separate statements if you want them executed in order. Chris |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >For what it's worth (From: Charlie Dickman <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.