[Lazarus] Passing properties as var paramatars (was: Delphi editor clone)

Paul Ishenin webpirat at mail.ru
Sat Nov 7 05:10:38 CET 2009


Alexander Klenin wrote:
> Inc(MyObj.MyIntProperty);
> =>
> var
>   temp: Integer;
> begin
>   temp := MyObj.MyIntProperty;
>   Inc(temp);
>   MyObj.MyIntProperty := temp;
> end;
>   
Property does not need to have a reader.

Best regards,
Paul Ishenin.




More information about the Lazarus mailing list