> > Only the pointer itself is the parameter and read-only. Where the pointer
> > points to is irrelevant.
I remember this from using classes where you can still access the class
properties -
should have thought about that before posing the question :).
>
> But in this case I'm wondering why you want to give a pointer instead
> of the real type?
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
Otherwise, I don't know what you mean..
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal