Am 24.08.2020 um 21:47 schrieb Lars via fpc-pascal:
Since FPC has no associative array I was thinking that the closest is TStringList with name/value pairs.

Then there is a hashlist in contnrs.

Maybe an associative array means you don't have to implement it using hashes in order for it to work?

If there is a need for one I might write one as the TStringList is a bit slow, but do they already exist elsewhere before undertaking it...

I suggest you to take a look at TDictionary<,> in Generics.Collections. You can find a comparison regarding performace of various hash list classes available with/for FPC here: http://www.benibela.de/fpc-map-benchmark_en.html

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to