From a09fa18356785aa16121328fc9f66d41d6ca2543 Mon Sep 17 00:00:00 2001 From: mryouse Date: Tue, 6 Jun 2023 21:58:12 -0400 Subject: bugfix: compile the interior of ->string --- compiler.d | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3