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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to