OK, so the answer is that overriding using \"="
would work for comparisons using ==
, but it’s not officially supported, and to use a normal function equal
instead.
@Hongbo what do you think of the idea I mentioned in this thread…
Warning 102 is overly broad. Avoiding use of == everywhere is not practical. Polymorphic comparison generates the expected result most of the time.