Hello,
Ia there any hash list implementation in free Pascal?
Ghashmap has no documentation. Is it stable for production use?
Regards

Mailing lists / fpc-pascal / 2017-03
10 messages · 6 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
Ia there any hash list implementation in free Pascal?
Ghashmap has no documentation. Is it stable for production use?
Regards
African Wild Dog wroteHello, Ia there any hash list implementation in free Pascal?
Hello,
Please take a look at these examples:
https://github.com/graemeg/freepascal/tree/master/packages/rtl-generics/examples
and in this wiki page:
http://www.freepascal.org/docs-html/3.0.0/fcl/contnrs/tfphashlist.html
Ghashmap has no documentation. Is it stable for production use?
Some info: https://www.mii.lt/olympiads_in_informatics/pdf/INFOL101.pdf
Ia there any hash list implementation in free Pascal? Ghashmap has no documentation. Is…
Il 18/03/2017 00:29, African Wild Dog ha scritto:
Ia there any hash list implementation in free Pascal?
The IniFiles unit (fpc/packages/fcl-base/src/inifiles.pp) provides a THashedStringList (descendant from TstringList) which I'm using reliably since many years.
Giuliano
Thanks for your reply Giuliano, Silvio.
To be more specific, i need a generic hash map similar to the Delphi's TDictionary.
It seems THashmap from the ghashmap unit is the most close to TDictionary.
Regards
You're welcome. :-)
Notice the first link I've passed is exactly showing the TDictionary, recently added to FPC:
https://github.com/graemeg/freepascal/blob/master/packages/rtl-generics/src/inc/generics.dictionariesh.inc#L534 .
You should take a look at that. :-)
Il 18/03/2017 00:29, African Wild Dog ha scritto: The IniFiles unit…
If it is not specific to INI files and can be used generally for many things, maybe it should be pulled out into some other unit so people do not think it is just INI file related?
Also, ini files are file based, so could it be used without using files on the disk and used as a in memory list only?
Any time someone sees "ini file" they think "files on the hard drive", and could be turned off using this, when in fact it could be just what they need.
we could put it in contnrs, and alias it in inifiles.pp
Michael.
2017-04-12 10:57 GMT-03:00 Michael Van Canneyt :
we could put it in contnrs, and alias it in inifiles.pp
+1
If it is not specific to INI files and can be used generally for many things, maybe it…
maybe it should be pulled out into some other unit so people do not think it is just INI file related?
Agreed!
G.
we could put it in contnrs, and alias it in inifiles.pp Michael.
Il 12/04/2017 15:57, Michael Van Canneyt ha scritto:
we could put it in contnrs, and alias it in inifiles.pp
+1
Giuliano