[Lazarus] ComparePoints func

Michael Van Canneyt michael at freepascal.org
Wed Jul 26 18:30:58 CEST 2017



On Wed, 26 Jul 2017, Alexey via Lazarus wrote:

> On 26.07.2017 18:11, Graeme Geldenhuys via Lazarus wrote:
>> ComparePoints() returning a Integer is not a very friendly return type 
>> either,
>
> Hm, in my app Int makes sense: i need to compare Points in binary 
> search, and see: >, <, =.

This compare is very specific to your application.

I don't think it would be a good idea to generalize this.

Michael.


More information about the Lazarus mailing list