If I have this construct:
a.key = b
and both a has a metatable attached and b has a metatable attached. Then b's metatable setter will be called to set key to b. Is this a bug of lua 5.3.0?
EDIT: a and b are strings.
If I have this construct:
a.key = b
and both a has a metatable attached and b has a metatable attached. Then b's metatable setter will be called to set key to b. Is this a bug of lua 5.3.0?
EDIT: a and b are strings.
Copyright © 2021 Jogjafile Inc.
Answer from the docs. It is a feature: a and b were string and hence shared their metatable.