_eq is a metamethod which checks if two integers are equal. Not really sure what the use would be, because you could still get the game's metatable and change the _eq function to be something something completely different, ex:
6 | setmetatable (a, { __eq = func } ) |
Haven't tested it, but if you ran that script in an environment that let you use the setmetatable
function, and you tried to compare "a" with anything, it would return false for everything, even if you tried to do print(a==a)
. It's a pretty interesting concept. With the rawequal function, however, it would be much easier. You'd just need to get the global environment, and change the function to another function:
1 | getgenv (). rawequal = function () return false end |
much smaller.