[fpc-pascal] Re: Generics - how to rewrite TOjectDictionary

Marius fpclazarus at home.nl
Tue Apr 9 22:00:05 CEST 2013


dmitry boyarintsev wrote:

>function GetMyObject(dic: TStrings; const nm: string): TMyObject;

It is one of the few solutions to share the code between delphi and fpc
(and yes, i would probably encase it in another class to hide the
typecasting). Still need to figure out how hashing compare to
stringlist (it should be a lot faster but i can't find the link at this
moment)




(Sorry I had some trouble with the mailing list, previous msg's are
delayed)




More information about the fpc-pascal mailing list