Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-03

rtl-generics vs fgl

7 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

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

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp
Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
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.

Marco van de Voort
to Sven Barth

In our previous episode, Sven Barth via fpc-pascal said:

Show quoted text 6 lines
> 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? The fgl unit is more lightweight while rtl-generics might provide better performance.

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