Forum: Object-Pascal / Delphi-Language
by himitsu,
6. Jul 2012
Forwad kann man auch in der Implementation benutzen.
function XYZ: string;
forward;
function ABC: string;
begin
Result := XYZ;
end;
Forum: Object-Pascal / Delphi-Language
by himitsu,
5. Jul 2012
Delphi 6 sollte doch auch schon Klassenfunktionen unterstützen?
type
TUtilityXyz = class // in neueren Delphis "class abstract" oder als Record
class function Max(x, y: Integer): Integer; static; // wenn static noch nicht geht, dann weglassen
class function Min(x, y: Integer): Integer; static; overload;
class function Min(x, y: Double): Double; static; overload;
end;
...
Forum: Object-Pascal / Delphi-Language
by himitsu,
5. Jul 2012
Alles was im "interface" veröffentlicht wird, ist puclic.
Alles was nur in der "implementation" auftaucht, ist quasi private.
Ich wünschte mir eine rote Box.