Article View: borland.public.csharpbuilder.language.csharp
Article #323Re: shortcut boolean evaluation ?
From: Sean
Date: Sat, 30 Jul 2005 21:31
Date: Sat, 30 Jul 2005 21:31
12 lines
1296 bytes
1296 bytes
Hi OD Yes. "The conditional-AND operator (&&) performs a logical-AND of its bool operands, but only evaluates its second operand if necessary." Cheers Sean > is c# using shortcut boolean evaluation as Delphi does ?
Technical Details
Message-ID:
<42ebf1ab$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<mn.f5757d57fd2271e3.18651@0e-naxos.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,29b5ef56bf6fd970 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 31 Jul 2005 09:31:16 +1200 From: Sean <sathomas@SPAMiconz.co.nz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Re: shortcut boolean evaluation ? References: <mn.f5757d57fd2271e3.18651@0e-naxos.com> In-Reply-To: <mn.f5757d57fd2271e3.18651@0e-naxos.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 210.48.81.60 Message-ID: <42ebf1ab$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1122759083 210.48.81.60 (30 Jul 2005 14:31:23 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail