[fpc-devel] potential bug, generics vs helpers

Thaddy thaddy at thaddy.com
Fri Jan 27 17:46:38 CET 2012


On 27-1-2012 17:25, Marco van de Voort wrote:
> In our previous episode, Kornel Kisielewicz said:
>> {$apptype console}
>>
>> Type
>>      TLIST<T>=class
>>       end;
>>
>> type
>>      Ta= TLIST<POINTER>;
>>      TB= TLIST<POINTER>;
This may very well be a (semantics) bug in Delphi.
Did you put this to Embarcadero?
IMO a type Ta<..> should never be assignable to a type Tb<..> and 
reverse when using generics. (unless with operator overloading or 
similar defined)
I think this may be an unintentional "feature" in Delphi.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2768 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120127/eba283b3/attachment.bin>


More information about the fpc-devel mailing list