[fpc-devel] Thoughts on being able to declare "pointer-to-type" parameters directly in method signatures?

Ben Grasset operator97 at gmail.com
Fri Jun 7 22:10:50 CEST 2019


On Fri, Jun 7, 2019 at 3:26 PM Jonas Maebe <jonas at freepascal.org> wrote:

> So if you add something in it that is in fact the same as a regular type
> definition, something is wrong.
>

What exactly is "wrong" there, though? In a world where they both worked,
doing this, as we've discussed:

procedure Proc(Param: ^TSomeType);

would be no different than doing this in any sense that really mattered:

type PSomeType = ^TSomeType;
procedure Proc(Param:  PSomeType);

apart from being somewhat more convenient.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190607/011c1270/attachment.html>


More information about the fpc-devel mailing list