From d8abd3ac4ca7bcdf6e9b5db17d552fee68978e81 Mon Sep 17 00:00:00 2001 From: gnembon Date: Mon, 23 Mar 2020 00:13:46 -0300 Subject: [PATCH] note on break and continue --- docs/scarpet/Full.md | 1 + docs/scarpet/language/LoopsAndHigherOrderFunctions.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/scarpet/Full.md b/docs/scarpet/Full.md index 2f99c301..f7a4941b 100644 --- a/docs/scarpet/Full.md +++ b/docs/scarpet/Full.md @@ -990,6 +990,7 @@ iteration expression. `c_for` Mimics c-style tri-arg (plus body) for loops. Return value of `c_for` is number of iterations performed in the loop. Unlike other loops, the `body` is not provided with pre-initialized `_` style variables - all initialization and increments has to be handled by the programmers themselves. + `break` and `continue` statements are handled within `body` expression only, and not in `condition` or `increment`.
  c_for(x=0, x<10, x+=1,
diff --git a/docs/scarpet/language/LoopsAndHigherOrderFunctions.md b/docs/scarpet/language/LoopsAndHigherOrderFunctions.md
index a25280fe..65dc2715 100644
--- a/docs/scarpet/language/LoopsAndHigherOrderFunctions.md
+++ b/docs/scarpet/language/LoopsAndHigherOrderFunctions.md
@@ -24,6 +24,7 @@ iteration expression.
 `c_for` Mimics c-style tri-arg (plus body) for loops. Return value of `c_for` is number of iterations performed in the
  loop. Unlike other loops, the `body` is not provided with pre-initialized `_` style variables - all initialization
  and increments has to be handled by the programmers themselves.
+ `break` and `continue` statements are handled within `body` expression only, and not in `condition` or `increment`.
  
  
  c_for(x=0, x<10, x+=1,