Re: [ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-18 Thread Adam Straughan
> (VB6 would throw you an error, since it actually does always > evaluate the second subexpression, indifferent from what the > first subexpression evaluated to. In VB.net you now have AndAlso and OrElse keywords, both of which use short circuit logic. It's not as good as I'd like it but it's be

Re: [ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-14 Thread Saurabh Nandu
ns > Sent: Friday, June 14, 2002 12:27 PM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Evaluation of boolean expressions. > > I really like the way C# handles boolean expressions like: > > a && b > > and > > c || d. > > If a is false

[ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-14 Thread Stefan Holdermans
I really like the way C# handles boolean expressions like: a && b and c || d. If a is false, b is not evaluated, since the expression cannot be satisfied anyway; if c is true, d is not evaluated. But -- is this just a Microsoft-specific implementation of the && and || operators? Or do