Logical operations: Difference between revisions

Line 3,352:
{{works with|GNU Smalltalk}}
{{works with|Smalltalk/X}}
Logical operators are "&"(and), and "|" (or) andare "not"evaluating their arg (i.e. <expr1> OP <expr2> will evaluate expr2 in any situation).
These are evaluating their arg (i.e. expr1 OP expr2 will evaluate expr2 in any situation).
<br>
There are also non-evaluating versions named "and:" and "or:", which only evaluate expr2 if the result is not already determined by expr1.
Anonymous user