[fpc-pascal] const parameter writeable

Jonas Maebe jonas.maebe at elis.ugent.be
Mon May 1 21:56:24 CEST 2006

On 01 May 2006, at 20:07, L505 wrote:

> 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  


More information about the fpc-pascal mailing list