Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.184 Beiträge
Delphi 12 Athens
|
AW: Records
3. Nov 2023, 15:59
Die Lösung nennt sich Custom Managed Records.
https://docwiki.embarcadero.com/RADS...anaged_Records
Delphi-Quellcode:
type
TMyRecord = record
Value: Integer;
class operator Initialize(out Dest: TMyRecord);
end;
class operator TMyRecord.Initialize(out Dest: TMyRecord);
begin
Dest.Value := 10;
end;
$2B or not $2B
|