X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fflow-control.texi;h=f1fe00e7a97468fcd7ab2ec36e20950d9afc3fba;hb=5d1348cd3e1f9dbf631ce9f67f2748eaa216dc45;hp=2145033180f2449b1c17b37ea7de0af47c421f02;hpb=1fc3af93c0ba6cbaf7ef09edc979096b6f16dd6f;p=pspp-builds.git diff --git a/doc/flow-control.texi b/doc/flow-control.texi index 21450331..f1fe00e7 100644 --- a/doc/flow-control.texi +++ b/doc/flow-control.texi @@ -158,6 +158,12 @@ loop is executed MXLOOPS (@pxref{SET}) times. @cmd{BREAK} also terminates @cmd{LOOP} execution (@pxref{BREAK}). +Loop index variables are by default reset to system-missing from one +case to another, not left, unless a scratch variable is used as index. +When loops are nested, this is usually undesired behavior, which can +be corrected with @cmd{LEAVE} (@pxref{LEAVE}) or by using a scratch +variable as the loop index. + When @cmd{LOOP} or @cmd{END LOOP} is specified following @cmd{TEMPORARY} (@pxref{TEMPORARY}), the @cmd{LAG} function may not be used (@pxref{LAG}).