[fpc-devel] Generics

Florian Klaempfl florian at freepascal.org
Sun Apr 9 20:55:33 CEST 2006


Flávio Etrusco wrote:
> On 4/9/06, Florian Klaempfl <florian at freepascal.org> wrote:
>> rstar at mnet-online.de wrote:
>> (...)
>> Is there already a specification how they will look like in Delphi?
>>
>>> (.net2)? What's planned? Can somebody explain?
>>>
>> They are more like C++ templates.
> 
> What? Do you mean that FPC implementation of generics wouldn't be
> based on "type erasure" but on beefed-up-precompiler-macros? Please
> say I got it all wrong :-o

You want crippled generics regarding speed and usage like C# has? You
can do this with "real" templates as well using an implementation class
and wrapper templates.



More information about the fpc-devel mailing list