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?
Going forward (FPC 3.0.2+), which Generics code are we supposed to use?
Regards,
Graeme

Mailing lists / fpc-pascal / 2017-03
7 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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?
Going forward (FPC 3.0.2+), which Generics code are we supposed to use?
Regards,
Graeme
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.
Thank you Michael.
Regards,
Graeme
Sorry if this is a silly question, I didn't really follow Generics discussions in the…
Am 19.03.2017 10:10 schrieb "Graeme Geldenhuys" <
The fgl unit is more lightweight while rtl-generics might provide better performance.
Regards,
Sven
In our previous episode, Sven Barth via fpc-pascal said:
Performance is a multi edges sword anyway.
For a site that shows some benchmarking results for commonly used FPC hashes (though actually more generic maps) see
http://forum.lazarus-ide.org/index.php/topic,34348.msg225877.html#msg225877
Sorry if this is a silly question, I didn't really follow Generics discussions in the…
The "FPC way" is fgl, the delphi compatible way is rtl-generics.
Florian Klämpfl wroteThe "FPC way" is fgl, the delphi compatible way is rtl-generics.
Thanks everybody - very useful information. At least now I know when to use which one.
Regards,
Graeme