greglo/StackGame

Instructions are not a value type!

Closed this issue · 0 comments

Const 1 != Const 1 at the moment. Specifically the following code returns false, when it should return true.

new Instruction("const", new IntStackValue(1)).equals(new Instruction("const", new IntStackValue(1)))