__eq metamethod argument count with colon
🖼️ Rendering•Updated 2 days ago•0 views
Defining __eq with a colon makes it a method - it receives (self, a, b) = 3 args; define it as function(a,b) for 2 args, or compare via the class() __eq which o…
Why does my __eq get 3 args / how to compare tables
Defining __eq with a colon makes it a method - it receives (self, a, b) = 3 args; define it as function(a,b) for 2 args, or compare via the class() __eq which only uses arg 1.