[fpc-devel] Packages, Generics

Florian Klaempfl florian at freepascal.org
Mon Sep 13 15:16:13 CEST 2010


Am 13.09.2010 14:51, schrieb Willibald Krenn:
> 
>>> Well, it's the Delphi way of creating a new type rather than an 
>>> alias.
>> 
>> Since they are still assignment compatible, I don't consider it as
>> a really new type.
> 
> Are you sure they are assignment compatible? 

I don't have a delphi here, but I'am pretty sure, yes.

> I thought the whole
> point of the type A = type B was to make a new type, not an alias.

Well, the point is to be able to overload procedures/functions. They are
no more equal but compatible.




More information about the fpc-devel mailing list