Mehyar Posted December 8, 2003 Posted December 8, 2003 Ok so I know AndAlso is better than And becasue if the first operand is false, it doenot compute the second, and the same applies to OrElse, the question I have is Are And and Or operators left for backward compatibility ? becasue I still cant see any use of them in the presence of AndAlso and OrElse ?? Quote Dream as if you'll live forever, live as if you'll die today
Administrators PlausiblyDamp Posted December 8, 2003 Administrators Posted December 8, 2003 You may have code that requires both operands to be evaluated - perhaps you are comparing the result of two functions - but both of those functions have required side-effects. Not good design in my opinion but it does happen from time to time. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
AndreRyan Posted December 29, 2003 Posted December 29, 2003 Plus the And and Or operators and bitwise operators. You use Or with Enumerations for choosing multiple flags and use And to figure out which flags are selected. Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.