[fpc-devel] Defer keyword

Sven Barth pascaldragon at googlemail.com
Sat May 8 16:03:25 CEST 2021


Am 07.05.2021 um 17:40 schrieb Benito van der Zander via fpc-devel:
>> The introduction of generics and their abundant use in Delphi has 
>> noticably slowed down the compiler and increased binary sizes. To my 
>> dismay, compile times of 20 seconds up to 2 minutes have become not 
>> uncommon in Delphi. Something almmost unthinkable in D7 days. 
>
> With these generics they copied all the problems of C++. One of the 
> worst ways of doing that
>
> It would have been better to implement them like dynamic arrays. The 
> generic code gets RTTI, the specialization does not generate any code, 
> and just avoids explicit casting.

That would also be a much less flexible approach. The way it is now 
allows for much more functionality to be covered with generics.

Regards,
Sven


More information about the fpc-devel mailing list