<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am So., 1. Dez. 2019, 23:11:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Nov 30, 2019, at 1:04 PM, Sven Barth via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
> <br>
> 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.<br>
<br>
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? <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Well, you disable a feature that a mode provides. Some strange there... </div><div dir="auto"><br></div><div dir="auto">And it's simply done as with other switches:</div><div dir="auto"><br></div><div dir="auto">{$modeswitch xyz-} </div><div dir="auto"><br></div><div dir="auto">(I don't know right now whether "off" is supported as well) </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>