[fpc-pascal] Release of fpc-2.1.4 aka 2.2.0-beta

Marc Weustink marc at dommelstein.net
Sun May 20 14:53:57 CEST 2007


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




More information about the fpc-pascal mailing list