[fpc-pascal] specialize, identifier not found
Sven Barth
pascaldragon at googlemail.com
Thu Dec 17 14:58:57 CET 2015
Am 17.12.2015 13:37 schrieb "Santiago A." <svaa at ciberpiula.net>:
>
> El 17/12/2015 a las 11:35, Sven Barth escribió:
>>
>> Am 17.12.2015 11:18 schrieb "Santiago A." <svaa at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151217/470af006/attachment.html>
More information about the fpc-pascal
mailing list