From d13ae11c4f7cccd8f5e3ad072597c55c9471a638 Mon Sep 17 00:00:00 2001 From: mryouse Date: Thu, 25 May 2023 02:00:37 +0000 Subject: fix def bug (maybe?) and block bug (maybe?) --- compiler.d | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler.d') diff --git a/compiler.d b/compiler.d index 665fe61..1c9e507 100644 --- a/compiler.d +++ b/compiler.d @@ -356,11 +356,6 @@ class Compiler { } void compileSymbol(Form form, ValueType expecting = ValueType.ANY) { - if (form.type != FormType.SYMBOL) { - writeln("NOT A SYMBOL!"); - } else { - writeln("it's a symbol"); - } Symbol sym = cast(Symbol)form; int arg = this.resolveLocal(sym); @@ -371,8 +366,6 @@ class Compiler { this.func.chunk.writeOp(OpCode.OP_GET_GLOBAL, sym.line); } - writefln("this is the addr: %d", arg); - // get the variable this.func.chunk.writeOp(to!ubyte(arg), sym.line); -- cgit v1.2.3