Re: [fpc-pascal] Need some advice

2024-01-24 Thread ppadilcdx via fpc-pascal
Oh I didn't notice the typo, duh.  Thanks!! On 1/24/24 02:57PM, Sven Barth via fpc-pascal wrote: ppadilcdx via fpc-pascal 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

Re: [fpc-pascal] Need some advice

2024-01-24 Thread Sven Barth via fpc-pascal
ppadilcdx via fpc-pascal 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

Re: [fpc-pascal] Need some advice

2024-01-24 Thread ppadilcdx via fpc-pascal
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 : program test; {$mode objfpc} {$modeswitch advancedrecords} uses   fgl; type    pair = record   x, y : integer;  

Re: [fpc-pascal] Need some advice

2024-01-24 Thread Luca Olivetti via fpc-pascal
El 24/1/24 a les 20:31, ppadilcdx via fpc-pascal ha escrit: Trying to use the fgl unit, specifically the TFPGMap.   Below is a simple program I'm trying to compile; it gives me two errors: fgl.pp(1582,18) Error: Operator is not overloaded: "pair" < "pair" fgl.pp(1584,23) Error: Operator is not

[fpc-pascal] Need some advice

2024-01-24 Thread ppadilcdx via fpc-pascal
Trying to use the fgl unit, specifically the TFPGMap.   Below is a simple program I'm trying to compile; it gives me two errors: fgl.pp(1582,18) Error: Operator is not overloaded: "pair" < "pair" fgl.pp(1584,23) Error: Operator is not overloaded: "pair" > "pair" program test; {$mode objfpc}