[fpc-pascal] Two possible generics bugs
Sven Barth
pascaldragon at googlemail.com
Mon Dec 2 11:12:22 CET 2019
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
So., 1. Dez. 2019, 23:11:
>
>
> > 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?
>
Well, you disable a feature that a mode provides. Some strange there...
And it's simply done as with other switches:
{$modeswitch xyz-}
(I don't know right now whether "off" is supported as well)
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20191202/b7c741f6/attachment.html>
More information about the fpc-pascal
mailing list