Confused

Reading Programming in Objective-C 2.0. It’s pretty good overall. Easy to read, the explanations usually make sense. Here’s 1 part that didn’t, p. 50:

For example, it’s guaranteed that an integer value will be stored
in a minimum of 32 bits of storage. However, once again, it’s not guaranteed.

Granted, may be I’m just being dumb, but context doesn’t seem to help either:

You should never write programs that make assumptions about the size of your data types. However, you are guaranteed that a minimum amount of storage will be set aside for each basic data type. For example, it’s guaranteed that an integer value will be stored in a minimum of 32 bits of storage.However, once again, it’s not guaranteed. See Table B.2 in Appendix B,“Objective-C Language Summary,” for more information about data type sizes.

The Table in the Appendix says stuff like: “Integer value; that is, a value that contains no decimal point; guaranteed to contain at least 16 bits of accuracy.” Again, it says
“guaranteed” but the paragraph above says both, “guaranteed” and “not guaranteed.”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s