Alexander Klenin wrote:
For each property argument, the compiler should create temporary variable,
set it by reading the property before the function call, and set
property to the new value
after the call.

Inc(MyObj.MyIntProperty);
=>
var
  temp: Integer;
begin
  temp := MyObj.MyIntProperty;
  Inc(temp);
  MyObj.MyIntProperty := temp;
end;

At that time I proposed this too and there was a valid reason not to generate such code.

Marc



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to