On Sunday 20 May 2007 16:22:44 Jonas Maebe wrote:
> On 20 May 2007, at 16:20, bartek wrote:
> > This made me curious, and I checked my links. Seems like I
> > accidentally
> > compiled with fpc 2.3.1. I am very sorry, my bad :( .
> > But OTOH, I still want to know what I need to do to get my code to
> > work with
> > 2.3.1 .
>
> As Marc said: do not pass properties as var-parameters (regardless of
> the implementation of the properties).
>
OK. And what about this:
-----8<-----
/home/bartek/Dev/units/glgui/glgui.pp(376,33) Error: Can't take the address of 
constant expressions
-----8<-----
constructor TGLGUI3DMouseMapper.Create(aOwnerDesktop: TGLGUIDesktop);
begin
        OwnerDesktop:=aOwnerDesktop;
        OwnerDesktop.MouseMapper:=self; // 376 is here
end;
-----8<-----

Definition snippet:
-----8<-----
                // properties
                property OwnerDesktop: TGLGUIDesktop read fOwnerDesktop write 
fOwnerDesktop;
-----8<-----

bartek
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to