[fpc-devel] Problem (bug?) with generics

Micha Nelissen micha at neli.hopto.org
Thu Sep 13 19:32:27 CEST 2007


Micha Nelissen wrote:
> Giulio Bernardi wrote:
>> FPC raises an error on these lines:
>>    p^.data1:=1;
>>    p^.data2:=2;
>> Tried with 2.2.0 and 2.3.1 (svn revision 8423).
>>
>> Is this a bug (should I report this to mantis?) or a feature?
> 
> How are you specializing this generic ?

Never mind, it's in the lines before. Seems like fpc doesn't allow
dereferencing a variable of a generic type in any way. The expression p^
will generate the error.

Micha



More information about the fpc-devel mailing list