[fpc-pascal] Two possible generics bugs

Ryan Joseph genericptr at gmail.com
Sun Dec 1 18:22:13 CET 2019



> On Nov 30, 2019, at 1:04 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> Well, if you want you can find any place where the _SPECIALIZE and _GENERIC tokens are used and checked against mode Delphi to check against a new modeswitch instead ("GENERICKEYWORDS") which must be enabled by default in all modes except the Delphi ones.

So to get Delphi mode style generics in ObjFPC mode you need to disable the modeswitch? That's kind of backwards from what mode switches usually  do but it makes sense. How do you even disable a mode switch? 

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list