[fpc-pascal] Need some advice

Sven Barth pascaldragon at googlemail.com
Wed Jan 24 23:57:17 CET 2024


ppadilcdx via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am Mi.,
24. Jan. 2024, 22:07:

> Thanks for that, now it compiles but it doesn't work, i.e. I added a
> pair and value and then used trygetdata and it can't find it. So perhaps
> I'm missing something else :
>

Your operator needs to establish a true order between the two passed in
values. Right now your operators only check a, but not b. That is wrong and
thus the map won't work correctly.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20240124/9cee7c03/attachment.htm>


More information about the fpc-pascal mailing list