Being nervous about applying the ! operator to a pointer is needless. It has 
always been well defined. From the C specification:

"The operand of the ! operator must have arithmetic type or be a pointer, and 
the result is 1 if the value of its operand compares equal to 0, and 0 
otherwise. The type of the result is int."

The concept of Boolean isn't even mentioned here, as it is really just a 
fiction anyway. Know thy language.

>> By the way, I concur with Thomas Davie: treating a pointer as a Boolean 
>> makes me nervous.

Tom Wetmore

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to