[fpc-pascal] TFPGObjectList error

Michalis Kamburelis michalis.kambi at gmail.com
Sun Jul 1 05:57:27 CEST 2018


Ryan Joseph <ryan at thealchemistguild.com> wrote:

>
> > 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.
>

It is part of FPC 3.1.1, and the unit name is "Generics.Collections". For
FPC 3.0.x you can take them from Maciej Izak's original repo
https://github.com/maciej-izak/generics.collections .

Some examples of basic usage are in my
https://castle-engine.io/modern_pascal_introduction.html#generic-containers-section
. Also Delphi docs are quite useful since the API is deliberately
compatible:
http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections
.

Regards,
Michalis

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180701/d80e2c92/attachment.html>


More information about the fpc-pascal mailing list