[fpc-devel] Include() and Exclude() with read-only property

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Dec 10 11:12:05 CET 2007


On 10 Dec 2007, at 09:53, Graeme Geldenhuys wrote:

> On 10/12/2007, Micha Nelissen <micha at neli.hopto.org> wrote:
>>
>> Include needs a var parameter, i.e. it needs to be able to take  
>> address
>> of the expression you supply as first param. ComponentState is a
>> property, and you can't take the address of a property -> error.
>
>
> But why does it then _work_ under Linux and Windows (FPC 2.0.4 and  
> FPC 2.2.0)?
> I can compile fpGUI without any issue under Linux using FPC 2.2.0 and
> code like the following...

It has nothing to do with Linux/Windows vs FreeBSD. This was a bug in  
FPC 2.2.x and below, and is fixed in FPC 2.3.1. It has not been  
merged because it breaks a lot of (admittedly wrong) code.


Jonas



More information about the fpc-devel mailing list