1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 09:09:31 +00:00

Change equality test to reference comparison for mutable values

This commit is contained in:
Étienne Fildadut 2022-09-09 14:54:45 +09:00
parent b50d783928
commit bac5cdde01
8 changed files with 315 additions and 87 deletions

View file

@ -0,0 +1,23 @@
% class
:a:b = "foo"
:c = "bar"
:o = class
:a = class
::b = class
0 = {o == a}
0 = {o == b}
1 = {o!constant == b}
~ o.b := "haha"
0 = {o!constant == b}
~ a.b := "haha"
1 = {o!constant == a!constant}
~ o.b := "foo"
0 = {o!constant == b}