[fpc-devel] for-in-index loop

luiz americo pereira camara luizmed at oi.com.br
Mon Jan 28 00:41:13 CET 2013


2013/1/27 Sven Barth <pascaldragon at googlemail.com>:
> On 27.01.2013 20:46, luiz americo pereira camara wrote:
>>>
>>> What would have been more
>>> interesting is the performance of the generated code compared with e.g. a
>>> TStringList or a TObjectList.
>>
>>
>> Independent of the performance, what's the benefit of replacing the
>> current implementation by one based in generic?
>>
>> AFAIK none. It would just require more work, resulting in bigger and
>> slower code
>
>
> I'm not saying that we should replace the code in Classes by generics. I'm
> just interested in how generics perform compared to non-generic "generic"
> classes.
>

OK.

Just to be clear, i'm no against having generic at all. I even added a
bugreport requesting a feature and would be happy of having the Delphi
generic classes (TList<>, TDictionary) implemented

Luiz



More information about the fpc-devel mailing list