I followed this page, and got an metamethod __mutate_asn. This is my test code.
local mt = {}
mt.__mutate_asn = function(a, b)
print(a, b)
return a + b
end
debug.setmetatable(0, mt)
a = 1
b = 2
a:=b
print(a)
output: 1 2 1 "a" never be changed.