Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread Mr Bee via fpc-pascal
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

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread zh loza via fpc-pascal
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

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread Mattias Gaertner via fpc-pascal
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 >

Re: [fpc-pascal] $modeswitch from command line

2020-02-04 Thread Jonas Maebe
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

[fpc-pascal] test plz ignore

2020-02-04 Thread Dimitrios Chr. Ioannidis via fpc-pascal
test plz ignore ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal