[fpc-pascal] += property bug?
Michael Van Canneyt
michael at freepascal.org
Mon Aug 12 09:40:45 CEST 2019
On Sun, 11 Aug 2019, Ryan Joseph wrote:
>
>
>> On Aug 11, 2019, at 3:59 PM, Alexander Grotewohl <alex at 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.
More information about the fpc-pascal
mailing list