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