Ryan Joseph <r...@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 >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal