summaryrefslogtreecommitdiff
path: root/testdata/scad/misc/value-reassignment-tests.scad
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-06-13 14:29:39 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-13 14:29:39 (GMT)
commitb45a93aad28a6764aa9aa56d27ffb716353dc27c (patch)
tree747cffce89dab5a4038d2467dfe2fae339bdb5fe /testdata/scad/misc/value-reassignment-tests.scad
parent2a8f188fca3476dd07222585237d3afbc2e7b6be (diff)
Related to #399, reverted assignment evaluation order to be the same as in 2013.01 as the new implementation broke existing scripts. Added some experimental commented out code, which can be used as reference in the future
Diffstat (limited to 'testdata/scad/misc/value-reassignment-tests.scad')
-rw-r--r--testdata/scad/misc/value-reassignment-tests.scad4
1 files changed, 2 insertions, 2 deletions
diff --git a/testdata/scad/misc/value-reassignment-tests.scad b/testdata/scad/misc/value-reassignment-tests.scad
index 4370c11..26afa03 100644
--- a/testdata/scad/misc/value-reassignment-tests.scad
+++ b/testdata/scad/misc/value-reassignment-tests.scad
@@ -4,6 +4,6 @@
myval = 2;
i = 2;
-myval = i * 2;
-echo(myval, i); // Should output 4, 2
+myval = i * 2; // This is not (yet) allowed as it will be evaluates in place of the first assignment
+echo(myval, i); // Should output undef, 2
contact: Jan Huwald // Impressum