<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hairy Pixels <<a href="mailto:genericptr@gmail.com">genericptr@gmail.com</a>> schrieb am Mo., 13. Juni 2022, 05:30:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Me and Sven had planned this a couple years ago and I finally got around to it this weekend since it was pretty trivial. The reason for this being we wanted a way to disable the generic keywords in ObjFPC mode. The solution is to decouple the keywords from the ObjFPC mode and put them under a mode switch.<br>
<br>
Basically now the generic and specialize keywords are enabled via the generickeywords mode switch, which is implicitly enabled in ObjFPC mode and can be disabled using {$modeswitch generickeywords-}. Technically they can be enabled in Delphi mode also although maybe this should be illegal.<br>
<br>
I ran all the tests which still pass but I'm very nervous about this introducing regressions so it will need a good review. :)<br>
<br>
<a href="https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/240" rel="noreferrer noreferrer" target="_blank">https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/240</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This won't be added until I've implemented the backwards compatible  type overloading in non-Delphi modes.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>