[fpc-pascal] Re: Generics - how to rewrite TOjectDictionary
pascaldragon at googlemail.com
Mon Apr 8 10:19:30 CEST 2013
Am 08.04.2013 10:18, schrieb Marco van de Voort:
> 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.
But AFAIK we don't have a TFGLObjectMap...
More information about the fpc-pascal