<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> Or you could use Generics.Collections unit with generic TList for<br>
> records. It by default compares records by comparing memory contents.<br>
<br>
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.<br></blockquote></div><div dir="auto"><br></div><div dir="auto">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 <a href="https://github.com/maciej-izak/generics.collections">https://github.com/maciej-izak/generics.collections</a> .</div><div dir="auto"><br></div><div dir="auto">Some examples of basic usage are in my <a href="https://castle-engine.io/modern_pascal_introduction.html#generic-containers-section">https://castle-engine.io/modern_pascal_introduction.html#generic-containers-section</a> . Also Delphi docs are quite useful since the API is deliberately compatible: <a href="http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections">http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Generics.Collections</a> .</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Michalis</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>