<p>Am 17.12.2015 13:37 schrieb "Santiago A." <<a href="mailto:svaa@ciberpiula.net">svaa@ciberpiula.net</a>>:<br>
><br>
> El 17/12/2015 a las 11:35, Sven Barth escribió:<br>
>><br>
>> Am 17.12.2015 11:18 schrieb "Santiago A." <<a href="mailto:svaa@ciberpiula.net">svaa@ciberpiula.net</a>>:<br>
>> > I can live with no passing them as var parameters, but I thing it is a<br>
>> > little cumbersome for setting fields. I will try using pointers.<br>
>><br>
>> What do you mean with var-parameters?<br>
><br>
><br>
> I can't use the field as actual parameter of function with a var parameter:<br>
><br>
> function foo(var n:integer);<br>
> begin<br>
> n:=n+1;<br>
> end;<br>
><br>
> foo(myObject.Reg.fieldReg)</p>
<p>That has an analogous reason as for the other problem. See here: <a href="http://wiki.freepascal.org/User_Changes_2.6.0#Taking_the_address_of_fields_of_record_properties">http://wiki.freepascal.org/User_Changes_2.6.0#Taking_the_address_of_fields_of_record_properties</a></p>
<p>Regards,<br>
Sven</p>