diff options
-rw-r--r-- | doc/tut1.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt index 2070c69d6..817bc6905 100644 --- a/doc/tut1.txt +++ b/doc/tut1.txt @@ -202,6 +202,12 @@ statement and all the variables will have the same value: echo "x ", x # outputs "x 42" echo "y ", y # outputs "y 3" +Note that declaring multiple variables with a single assignment which calls a +procedure can have unexpected results: the compiler will *unroll* the +assignments and end up calling the procedure several times. If the result of +the procedure depends on side effects, your variables may end up having +different values! For safety use only constant values. + Constants ========= |