From aab6510a0e59c26a31526ff303a9d581736815fc Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 26 May 2023 02:52:39 +0000 Subject: eq? for many things --- vm.d | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vm.d') diff --git a/vm.d b/vm.d index dcacd28..c7e5e8e 100644 --- a/vm.d +++ b/vm.d @@ -447,6 +447,11 @@ class VM { bool bval = asBoolean(val); this.pushA(makeBooleanValue(!bval)); break; + case OpCode.OP_EQUAL: + Value b = this.popA(); + Value a = this.popA(); + this.pushA(makeBooleanValue(areValuesEqual(a, b))); + break; case OpCode.OP_CONCAT: Seq b = asSeq(this.popA()); Seq a = asSeq(this.popA()); -- cgit v1.2.3