you make it sound so painfulOriginally posted by Robby
I have to agree with quwiltw...
Id say if someone gets this "downside" its a result of poor coding technique rather than AndAlso/OrElse. I think its generally a bad idea to have functions that change stuff in your expressions.Originally posted by bpayne111
AndAlso and OrElse have thier downsides...
ie. Say the Second part of your evaluation is a Function that changes a variable and you need that value reguardless of the outcome of your statment.
if(var!=null && (int)var > 5)
...
if(var!=null)
if((int)var > 5)
Originally posted by quwiltw
you make it sound so painful