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