summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/visitor-changes.txt1
-rw-r--r--src/control.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/visitor-changes.txt b/doc/visitor-changes.txt
index 2fdc944..4e864bf 100644
--- a/doc/visitor-changes.txt
+++ b/doc/visitor-changes.txt
@@ -1,3 +1,4 @@
Changes in visitor branch:
o import_dxf(): layername="" imports all layers. Importing a single layer with a zero-length name is no longer supported. FIXME: The same prob. goes for dims
o cylinder(): the r parameter will now always be used in place of a missing r1 or r2
+o for() with scalar argument now works, e.g.: for (i=23) echo(i)
diff --git a/src/control.cc b/src/control.cc
index 36689a0..26458fb 100644
--- a/src/control.cc
+++ b/src/control.cc
@@ -80,6 +80,7 @@ void for_eval(AbstractNode &node, const ModuleInstantiation &inst, size_t l,
}
}
else {
+ c.set_variable(it_name, it_values);
for_eval(node, inst, l+1, call_argnames, call_argvalues, &c);
}
} else {
contact: Jan Huwald // Impressum