[fpc-devel] for-in-index loop

Marco van de Voort marcov at stack.nl
Sat Jan 26 12:55:45 CET 2013


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.

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



More information about the fpc-devel mailing list