On Sun, 11 Aug 2019, Ryan Joseph wrote:



On Aug 11, 2019, at 3:59 PM, Alexander Grotewohl <a...@dcclost.com> wrote:

d.x += 10; // makes even more sense


rect.axisX += 10 is a compound statement. See it makes perfect sense. :) I 
still don’t understand why the compiler and Delphi apparently thinks this is 
such a crazy idea. It's just normal stuff imo.

This question pops up from time to time since 15 years if not more.

Some operators need actual variable addresses. A property does not have an 
address.
It also becomes difficult if you have interfaces & classes or other
overloaded things.

The compiler people can give a more detailed answer.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to