|
在 2015/6/16 23:42, Andrew Cagney 写道:
Hi,
I'd like to change the behaviour of __eq when applied to strings. I
suspect I'll need to somehow change the underlying string type?
<...>
Anyway, does anyone have a pointer or example showing how to do
override __eq (and string operations more generally).
meta-method in Lua is not a mechanism to override but as a fallback.