Tlist Compare, Sort, and Contains, or Why God Why

BlitzMax Forums/BlitzMax Programming/Tlist Compare, Sort, and Contains, or Why God Why

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Bump

"And I now see Compare() in Contains would always work because it's using Object.Compare(), not whatever I've got."

No it doesn't, because it will use the overridden version of Compare() in MyObject (derived from Object (right?)).

So,

"Is there a sensible reason why Contains uses _value.Compare(value) and not just _value=value?"