> i don't know why free pascal's map is based on array. Because the unit was meant mainly for testing the generics support and if you read the line right before the unit clause: https://github.com/graemeg/freepascal/blob/master/rtl/objpas/fgl.pp#L20
Still, there's no problem having array backed map, the convenience of map data structure is still achieved, it's just the speed that matters. Use fcl-stl instead, it has gmap which is rbtree backed and ghashmap which is hashtable backed. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Hello-I-suggest-that-you-change-the-TFPGMap-in-fgl-tp5725729p5725736.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal