Is there any difference beetween
static fields and
class variables?
unit myGreatUnit;
{$mode objfpc}
interface
type
TMyClass = class
strict private
// C L A S S
// attributes
foo: boolean; static;
// variables
class var
bar: boolean;
end;
implementation
end.
If so, what's the difference between them?
(Also, since when is
{$static on} illegal? My old code uses it.)
EDIT: Never mind,
the latest ref says it's equivalent. (I primarily use
/usr/share/doc/fp-docs/* which in stable Debian is 2.6.4)