Re: [fpc-pascal] Operator not overloaded

2022-06-24 Thread Sven Barth via fpc-pascal
Thomas Kurz via fpc-pascal schrieb am Fr., 24. Juni 2022, 15:33: > Thank you very much, declaring the operator within the record does indeed > solve the issue. > > Just to be sure in case I might need it some day: Does this mean, if I > need e.g. a comparison operator for a specialized TPair, I w

Re: [fpc-pascal] Operator not overloaded

2022-06-24 Thread Thomas Kurz via fpc-pascal
Thank you very much, declaring the operator within the record does indeed solve the issue. Just to be sure in case I might need it some day: Does this mean, if I need e.g. a comparison operator for a specialized TPair, I would declare a record class helper and define the operator there?

Re: [fpc-pascal] Operator not overloaded

2022-06-24 Thread Sven Barth via fpc-pascal
Thomas Kurz via fpc-pascal schrieb am Do., 23. Juni 2022, 19:45: > When compiling, I get this error: > > pathfinding.pas(17,17) Error: Operator is not overloaded: "TTileSegment" = > "TTileSegment" > > Which I don't understand -- because the "=" operator is defined in > tesstypes.pas. > > Am I doi