aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler.d b/compiler.d
index 51fca25..675ec4c 100644
--- a/compiler.d
+++ b/compiler.d
@@ -701,6 +701,12 @@ class Compiler {
this.func.chunk.writeOp(OpCode.OP_IS_NIL, args[0].line);
}
+ void compileToString(Form[] args) {
+ foreach (Form f; args) {
+ this.resolve(f);
+ }
+ }
+
@@ -828,6 +834,7 @@ class Compiler {
case "->string":
// does nothing at the moment, as primarily used for printing
// and everything can be printed
+ this.compileToString(cons.tail);
break;
// LISTS