[fpc-pascal] for..in loops?
Vincent Snijders
vsnijders at quicknet.nl
Tue Nov 22 20:08:55 CET 2005
Peter Vreman wrote:
> At 14:04 20-11-2005, you wrote:
>
>> Florian Klaempfl wrote:
>>
>>> Lukas Gebauer wrote:
>>>
>>>> enhancements in Delphi-2006... (like operator overloads or class
>>>> variables...)
>>>
>>>
>>> ... which has fpc for years :)
>>
>>
>> I didn't know that. How do I declare a class variable in fpc?
>>
>> like this?
>> type
>> MyClass = class(TComponent)
>> private
>> class FClassVar: integer;
>> FFieldVar: integer;
>> end;
>
>
> FClassVar:integer;static;
>
> And compile with -St
Florian told me the right syntax.
I used {$static on}.
See
http://www.freepascal.org/bugs/showrec.php3?ID=4528
and
http://www.freepascal.org/bugs/showrec.php3?ID=4529
Vincent.
More information about the fpc-pascal
mailing list