[fpc-devel] for-in-index loop

Sven Barth pascaldragon at googlemail.com
Sat Jan 26 13:03:47 CET 2013


On 26.01.2013 12:55, Marco van de Voort wrote:
> In our previous episode, Sven Barth said:
>>>> I wonder where you were when Operators feature has been added to
>>>> pascal? Or generics?
>>>
>>> Generics was implemented without my knowledge. I only found out when
>>> suddenly
>>> the classes unit had been changed to use them. After a horrible
>>> discussion, this was reversed, because of the drop in speed you got when
>>> using generics.
>>
>> Ah! So that is where those ifdefs in classes come from :) I always
>> wondered...
>
> Moreover, Delphi's generic TList<> is in generics.collections, not in classes.
>

Luckily we don't have a generic TList<> at all yet ^^

> There is no tstringlist<>, they went with a Dictionary instead.

Which reminds me that I wanted to port Python's dictionary 
implementation which is said to be the fastest around :)

Regards,
Sven



More information about the fpc-devel mailing list