On Oct 5, 2010, at 9:32 AM, Shawn Bakhtiar wrote:

> However, for clarity of the OP, x = x + y where y is an int, should be 
> typecast correctly as x = x + (float)y 

Why? The two are exactly equivalent.

Now if you want to do so as a stylistic preference, that's fine, but there's no 
"should" about it.

-- 
Scott Ribe
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to