[fpc-devel] Generic List in Advanded record does not compile with -MobjFPC, works with -MDelphi (perhaps related to Generics.Collections that I am using)
David Copeland
david.copeland at jsidata.ca
Mon Apr 27 22:31:43 CEST 2015
Maybe try adding a semi-colon at the location marked below.
On 04/27/2015 03:46 PM, Michael Ring wrote:
> Did not work, now I get
>
> Fatal: Syntax error, ";" expected but "identifier PUBLIC" found
>
> I did a cut & paste of your code into my code
>
> Michael
> === code begin ===
>>
>> TSpecialFunctionRegister = record
>> public type
>> TSpecialFunctionBitsList = specialize TList<TSpecialFunctionBits> ;
>> // <- semi-colon added here
>> // alternatively you could declare that outside of the record as
>> well if you need it more often
>> public
>> name: String;
>> device: String;
>> address: LongWord;
>> bits: TSpecialFunctionBitsList;
>> constructor Create(theName: String; theAddress: LongWord);
>> end;
>>
>> === code end ===
More information about the fpc-devel
mailing list