[fpc-pascal] Re: Generics - how to rewrite TOjectDictionary
Marco van de Voort
marcov at stack.nl
Mon Apr 8 10:18:24 CEST 2013
In our previous episode, Marius2 said:
> Yes, I have used it lots of times and its really the last choice if theres
> something available like the objectdictionary. In this case the dict is also
> the owner of the objects, it saves me the continious ugly typecasting, takes
> care of the extra administration with freeing objects and all the additional
> troubles you get over time with this solution (its not as bad as i'm telling
> now). In other words tstrings.objects are working fine, but i find it a bad
> strategy if you have to use it in flatout in the whole application.
>
> I'm curious how to rewrite/solve dictionaries, indexed list and even sorted
> strings.objects to a neat solution while (if possible) working with both
> delphi and fpc/laz.
There is fgl.tfglmap and variants.
More information about the fpc-pascal
mailing list