[fpc-devel] A more fundamental problem Re: i36507
Ondrej Pokorny
lazarus at kluug.net
Fri Jan 3 10:56:42 CET 2020
On 03.01.2020 10:45, J. Gareth Moreton wrote:
> Given the "illegal qualifier" errors that appeared, I'm guessing the
> issue is that "Options" is also a property of the THistoryList class
> as well as a local variable. Technically speaking though, this is a
> regression unless it's to be documented (and hence break backward
> compatibility) that if you have a property and a local variable of the
> same name, the property takes precedence.
Nonsense.
That would mean that adding any new property in any object is a breaking
change because the same name can be used in any possible with-statement
at any place in any program or any local variable etc.
Short: every new property introduces a risk of clashes.
Ondrej
More information about the fpc-devel
mailing list