> On Jun 30, 2018, at 8:14 PM, Michalis Kamburelis <michalis.ka...@gmail.com> > wrote: > > The solution is to use TFPGList instead of TFPGObjectList. You should > also define an equality operator if TVec3 is a record. See e.g. my > example in > https://castle-engine.io/modern_pascal_introduction.html#_operator_overloading > (scroll to the example with TMyRecordList).
Thanks, that make sense now. I was really suspicious of TFPGObjectList having Object in it’s name but I didn’t know there was a TFPGList. > > Or you could use Generics.Collections unit with generic TList for > records. It by default compares records by comparing memory contents. Is that part of the RTL and if so what’s the unit name? I had a hard time finding good resources on classes the RTL provides. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal