On Sun, Mar 1, 2009 at 12:06 PM, Martijn van Exel <mve...@gmail.com> wrote:
> 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?

No, just as in C (and C++, when operator overloading isn't involved),
the second operand to the && operator is never evaluated if the first
evaluates to zero. What, exactly, is going wrong?

-- 
Clark S. Cox III
clarkc...@gmail.com
_______________________________________________

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