As mention in the email title, what I meant is {$modeswitch} not {$mode} as
explain here: https://www.freepascal.org/docs-html/prog/progsu105.html
For example, if I want to use extended record in objfpc mode, then I have to
define
{$mode objfpc}{$modeswitch advancedrecords}
in every single file
I personally find it very convenient to have a global include file for such
features.
E.g. we have a global.inc with {$mode objfpc}{$modeswitch advancedrecords}
and include it {$include global.inc} in every file of our project. This way
we can easily modify a lot of compiler directives / macros tha
On Tue, 4 Feb 2020 08:41:22 + (UTC)
Mr Bee via fpc-pascal wrote:
> As mention in the email title, what I meant is {$modeswitch} not
> {$mode} as explain
> here: https://www.freepascal.org/docs-html/prog/progsu105.html
>
> For example, if I want to use extended record in objfpc mode, then I
>
On 04/02/2020 10:06, Mattias Gaertner via fpc-pascal wrote:
> As Sven explained a $mode resets all modeswitches.
> What you need is a switch to alter modeswitch of a mode. And
> there is currently no such switch.
>
> For example a syntax could be:
> -MObjFPC+AdvancedRecords+AnsiStrings-NestedComme
test plz ignore
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal