Hi All,,
Just a silly question 🙂
if I can write this code, what is the pros and cons about it ?
From a lasy view, you don't need to create it, free it, ..
Thanks
Patrick
prTxt = ^rTxt;
rTxt = record
private
FValue : string;
function GetAsText : string;
public
property Value : string read FValue;
property AsText : string read GetAsText;
function WithValue(const aValue : string) : prTxt;
end;