[fpc-devel] for-in-index loop

Marco van de Voort marcov at stack.nl
Fri Jan 25 23:50:22 CET 2013


In our previous episode, Alexander Klenin said:
> On Sat, Jan 26, 2013 at 9:31 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
> >   TFPGListLongInt = specialize TFPGList with (Integer);
> >
> 
> Whatever the particular syntax, I do agree that the decision to use
> angular brackets
> was unnecessarily copied from C++ -- round ones (or, at least, square
> ones) would be much better.

Delphi got its generics from .NET. The .NET compiler got it one version
earlier. (D2007, native D2009)

Probably the main reason for generics was access the 2.0 framework which was
new (and used generics) going from D2006 to D2007



More information about the fpc-devel mailing list