即使在元表中定义了 __eq,引用相等性检查(在表上)

Reference equality check (on tables) even when __eq was defined in metatable

是否有一些结构允许比较对表的引用,即使在它们的元表中定义了 __eq 函数。 Python中==和"is"有区别,Java中"equals"方法和==有区别。

来自Lua 3.5 Reference Manual: 6.1 Basic Functions

rawequal (v1, v2)

Checks whether v1 is equal to v2, without invoking the __eq metamethod. Returns a boolean.