[fpc-devel] Thoughts on being able to declare "pointer-to-type" parameters directly in method signatures?
Ryan Joseph
genericptr at gmail.com
Sun Jun 9 17:23:31 CEST 2019
> On Jun 9, 2019, at 9:45 AM, Florian Klämpfl <florian at freepascal.org> wrote:
>
> And? It is obvious that FPC has to know what's the base type of a pointer else it couldn't do type checking.
I think all he means is this:
type
TInt = ^integer;
procedure DoThis(i: TInt);
begin
end;
var
a: ^integer;
begin
DoThis(a0);
He just wants function parameters to declare the new pointer type inline.
procedure DoThis(i: ^integer);
begin
end;
var
a: ^integer;
begin
DoThis(a0);
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list