[fpc-pascal] rtl-generics vs fgl

Michael Van Canneyt michael at freepascal.org
Sun Mar 19 10:12:44 CET 2017



On Sun, 19 Mar 2017, Graeme Geldenhuys wrote:

> Hi,
>
> Sorry if this is a silly question, I didn't really follow Generics
> discussions in the past. If the "rtl-generics" package a replacement for
> the fgl unit?

No, it is for Delphi compatibility. It contains also more classes/templates.

> Going forward (FPC 3.0.2+), which Generics code are we supposed to use?

You are free to choose either one. if you care about Delphi compatibility,
then you should use the units in rtl-generics.

Michael.



More information about the fpc-pascal mailing list