In other words:
From: Dan Shafer <[EMAIL PROTECTED]>
This is, relatively speaking at least, how all of the major programming languages work. There's even a name for it. I think it might be called something like "lazy" Boolean evaluation.
In any case, while Jim is right that this can be an issue if you use expressions with side effects, the professional coders I've discussed this with -- and there haven't been that many -- have essentially said, "Don't include expressions in Boolean logic statements if thos expressions have side effects. Rather, evaluate the expressions outside the Boolean logic statement."
Cleanliness is next to buglessness.
Ray
Ray G. Miller __________________ Turtlelips Productions 4009 Everett Ave. Oakland, CA 94602 MailTo:[EMAIL PROTECTED] (V) 510.530.1971 (F) 510.482.3491
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
