[fpc-pascal] const parameter writeable
    L505 
    fpc505 at z505.com
       
    Tue May  2 05:06:13 CEST 2006
    
    
  
> 
> > did you mean this ? :
> >
> >    procedure ChangeRec1(const Rec: TSomeRec);
> >    begin
> >      Rec.a:= 'string A';
> >    end;
> >
> > Because I can't pass a PSomeRec to that function, only a TSomeRec
> 
> Then pass a PSomeRec^ to it if you don't intend to change the pointer  
> anyway.
> 
That works, I was getting sloppy with Delphi style code who doesn't always require the ^
    
    
More information about the fpc-pascal
mailing list