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

On 10/12/2007, Micha Nelissen <[EMAIL PROTECTED]> 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
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to