Am 07.06.2019 um 22:54 schrieb Ryan Joseph:

On Jun 7, 2019, at 4:51 PM, Sven Barth via fpc-devel 
<fpc-devel@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”? :)
No. The generic keywords are part of mode ObjFPC. The only thing I plan to do is to move the whole idea of generic keywords to a modeswitch, but that is neither here nor there currently.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to