Hi,
I think you should just use the 'Compare' method.
This exists for every object, and by default just does an address comparison. This at least gives you the ability to do the same thing as 'obj1=obj2', by using obj1.Compare(obj2)=0.
Strings override Compare to do a proper character by character comparison, so you also get proper string behaviour 'for free'.
And of course, other types can provide their own Compare.
Have a look at the mod/brl.mod/linkedlist.mod/linkedlist.bmx source to see how Compare is used to provide a Sort method for lists.
I think you should just use the 'Compare' method.
This exists for every object, and by default just does an address comparison. This at least gives you the ability to do the same thing as 'obj1=obj2', by using obj1.Compare(obj2)=0.
Strings override Compare to do a proper character by character comparison, so you also get proper string behaviour 'for free'.
And of course, other types can provide their own Compare.
Have a look at the mod/brl.mod/linkedlist.mod/linkedlist.bmx source to see how Compare is used to provide a Sort method for lists.