Ryan Joseph via lazarus <[email protected]> schrieb am Sa., 14.
Sep. 2019, 20:18:

>
>
> > On Sep 14, 2019, at 2:07 PM, Michael Van Canneyt via lazarus <
> [email protected]> wrote:
> >
> > By default, FPC also does not allow C style operators.
> >
> > You need to provide the -Sc command-line flag to the parser or set the
> appropriate flag manually on the parser object.
>
> I tried using -Mobjfpc because I know c style operators are a mode switch
> but that didn’t work. I guess modes are not supported in the parser and we
> need to use all the various -S flags?
>

As I already wrote some time ago C-style operators are *not* enabled by
default in any of the modes. Also they aren't a modeswitch either. They are
simply switched on inside the default fpc.cfg using the -Sc option. Thus,
as Michael wrote, you need to pass that parameter as well or explicitly set
the corresponding flag of the parser object.

Regards,
Sven

>
-- 
_______________________________________________
lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to