bartek wrote:
Hi,
I tried to compile my current project with the new compiler (2.1.4). This
resulted in the following error:
-----8<-----
/home/bartek/Dev/units/vmath.pp(435,29) Error: Can't take the address of
constant expressions
-----8<-----
-----8<-----
destructor TLazyVariableManager.Destroy;
var
i: integer;
begin
for i:=0 to LazyVariableList.count -1 do
TLazyVector4(LazyVariableList.items[i]).Free;
freeandnil(LazyVariableList); // <-- 435 is here
end;
-----8<-----
The error is IMO somewhat cryptic, but you cannot pass a property as var
parameter anymore. This to be inline with properties implemented by a
Setter.
Marc
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal