[fpc-devel] The usage of Include() doesn't work any more in 2.3.1
Marc Weustink
marc.weustink at cuperus.nl
Wed Jul 16 09:38:12 CEST 2008
Graeme Geldenhuys wrote:
> Hi,
>
> ------------------------- snip --------------------------
> Include(WindowAttributes, waStayOnTop); // <== doesn't compile with FPC 2.3.1
>
> WindowAttributes:=WindowAttributes +[waStayOnTop]; // <== this does
> ------------------------- end --------------------------
>
> As far as I understood, the above two lines should do exactly the same
> thing and I have been using Include() since Delphi 5 days and FPC
> 2.0.2. Now in FPC 2.3.1 it doesn't work any more. I get the following
> error.
You cannot pas properties in var parameters. (Imagine WindowAttributes
had a Getter and didn't read directly from FWindowAttributes)
Marc
More information about the fpc-devel
mailing list