While porting a plugin implementation between R19, R20, R21 I noticed a potential problem I might have introduced.
In R19 I had been using:
String stringA, stringB;
...
Bool match = (stringA.Compare(stringB) == 0);
In R20, due to the introduction of maxon::String
the return value of the comparison was replaced from an Int
to an enum COMPARERESULT
.
For some obscure reason I managed to overlook this and had ported the original implementation to:
maxon::String stringA, stringB;
...
Bool match = (stringA == stringB);
Thus completely neglecting the Compare
function.
While this seems to work, I am now looking into converting all my existing R20 code to again use the Compare function.
But I am wondering what possible problems I would face by keeping the current equality operator?
Daniel