> Regarding class constants: I missed them, too, already, although not too
> much. ;)

Maybe you should read the documentation. Static fields are supported already 
for 10 years:

~/fpc/compiler>>> cat p.pp
{$mode objfpc}
{$static on}
type
  cl=class
    l : longint;static;
  end;
var
  c1,c2 : cl;
begin
  c1:=cl.create;
  c2:=cl.create;
  c1.l:=2;
  writeln(c2.l);
  c2.l:=3;
  writeln(c1.l);
end.
[EMAIL PROTECTED]
~/fpc/compiler>>> ./p
2
3
[EMAIL PROTECTED]
~/fpc/compiler>>>


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to