[fpc-pascal] fgl unit bug in generic class TFPGMap
leledumbo
leledumbo_cool at yahoo.co.id
Tue Oct 28 06:02:55 CET 2014
> But a map should not need any call to Sort, because it's the map's task
to organize its data structure in such a way that Find does work as it
should.
TFPGMap seems to inherit its original sin: as long as it's a container that
implements key-value based storage, then it's a map. And there it is,
TFPGMap is created as a descendant of TFPSMap which in turn is a descendant
of TFPSList. The last one is the source of Sort/IndexOf/whatever that
normally doesn't apply to map containers. Sometimes I find it useful,
though. So I don't really have a problem with it.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fgl-unit-bug-in-generic-class-TFPGMap-tp5720282p5720400.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list