B
Boris Glawe
Hello,
I've an array filled with objects. These objects are instances of my own classes.
Which methods do I have to override in my classes that the array's uniq,
sort,... methods can successfully compare two of my objects?
I've tried to override the == method and the <=> method, but it didnt' work
thanks in advance
Boris
I've an array filled with objects. These objects are instances of my own classes.
Which methods do I have to override in my classes that the array's uniq,
sort,... methods can successfully compare two of my objects?
I've tried to override the == method and the <=> method, but it didnt' work
thanks in advance
Boris