[fpc-devel] A more fundamental problem Re: i36507

J. Gareth Moreton gareth at moreton-family.com
Fri Jan 3 11:00:57 CET 2020


This was not a new property or a recent change to the Lazarus sources 
though.  I was using an old revision of Lazarus to test optimisations 
on, and had been doing fine with it until I discovered last night that 
it would no longer build.  Updating to the latest repository didn't 
change the file in question. Something in the compiler was changed 
recently that caused it to break when it was able to handle the clash 
before.

Gareth aka. Kit

On 03/01/2020 09:56, Ondrej Pokorny wrote:
> 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
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>


More information about the fpc-devel mailing list