[fpc-devel] Thoughts on being able to declare "pointer-to-type" parameters directly in method signatures?
Ryan Joseph
genericptr at gmail.com
Fri Jun 7 22:54:02 CEST 2019
> On Jun 7, 2019, at 4:51 PM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
>
> It has been part of FPC from the beginning of generics. It allows the parser to differentiate easier that a specialization is following. This was less important when only type declarations could contain specializations, but nowadays with support for inline specializations this is especially true as something with "<" in it is not always easy to differentiate between a specialization and an expression. Case in point: Delphi mode doesn't yet support all kinds of expressions containing specializations that mode ObjFPC supports.
Then maybe it could be optional within type declarations? Delphi mode achieves this so I think ObjFPC could also. Yet another modeswitch like “autoderef”? :)
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list