[fpc-pascal] TFPGObjectList error

Ryan Joseph ryan at thealchemistguild.com
Sun Jul 1 04:42:33 CEST 2018



> On Jun 30, 2018, at 8:14 PM, Michalis Kamburelis <michalis.kambi at 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




More information about the fpc-pascal mailing list