Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cb64f9

Browse files
committed
"Shortcut" should be "short-circuit".
This closes SF bug #526277.
1 parent df70878 commit 6cb64f9

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Doc/tut/tut.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,12 +2039,13 @@ \section{More on Conditions \label{conditions}}
20392039
course, parentheses can be used to express the desired composition.
20402040

20412041
The Boolean operators \code{and} and \code{or} are so-called
2042-
\emph{shortcut} operators: their arguments are evaluated from left to
2043-
right, and evaluation stops as soon as the outcome is determined.
2044-
E.g., if \code{A} and \code{C} are true but \code{B} is false, \code{A
2045-
and B and C} does not evaluate the expression C. In general, the
2046-
return value of a shortcut operator, when used as a general value and
2047-
not as a Boolean, is the last evaluated argument.
2042+
\emph{short-circuit} operators: their arguments are evaluated from
2043+
left to right, and evaluation stops as soon as the outcome is
2044+
determined. For example, if \code{A} and \code{C} are true but
2045+
\code{B} is false, \code{A and B and C} does not evaluate the
2046+
expression \code{C}. In general, the return value of a short-circuit
2047+
operator, when used as a general value and not as a Boolean, is the
2048+
last evaluated argument.
20482049

20492050
It is possible to assign the result of a comparison or other Boolean
20502051
expression to a variable. For example,

0 commit comments

Comments
 (0)