Logical and - second operator evaluated?
Logical and - second operator evaluated?
- Subject: Logical and - second operator evaluated?
- From: Martijn van Exel <email@hidden>
- Date: Sun, 1 Mar 2009 21:06:01 +0100
Hi devs,
I can't seem to get away with
if(timer!=nil && [timer isValid]) [timer invalidate];
if the timer object does not exist.
I'm not used to the second operator of the && even being evaluated if
the first one evaluates false (Java, .NET). This is not the case in
(Obj)C?
--
martijn van exel -+- email@hidden -+- http://www.schaaltreinen.nl/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden