Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
1. Mär 2024
Ich weiß, aber selbst ohne static (was bei Record aber nicht geht),
wäre Self ein TClass und nicht TObject, womit es dann ebenfalls keine Instanzvariable wäre.
Gut, genauer wird hier das Create über den Scope gefunden.
Wie gesagt, ich kann hier einfach keine Instanzvariable entdecken, über welche sich der Compiler beschweren könnte,
abgesehn davon, dass dieses "Create" kein Konstructor,...
Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
1. Mär 2024
type
TTestRec = record
constructor Create(const Key: string; const Value: TBytes); overload;
constructor Create(const Key: string; const Value: string); overload;
class function Create(Keys: array of string; Values: array of TBytes): TArray<TTestRec>; overload; static;
class function Create(Keys: array of string; Values: array of string): TArray<TTestRec>; overload; static;...
Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
29. Feb 2024
In XE funktionierte es noch,
ich weiß die Lösung für D12,
aber ich versteh nicht warum.
constructor Create(const Key: string; const Value: TBytes); overload;
constructor Create(const Key: string; const Value: string); overload;
constructor Create(const Key: string; Value: Integer); overload;
constructor Create(const Key: string; Value: Boolean); overload;
class function...