[fpc-pascal] $modeswitch declared before $mode fails without warning
genericptr at gmail.com
Sun Sep 18 15:39:59 CEST 2022
> On Sep 18, 2022, at 7:37 PM, Florian Klämpfl via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> This is in general the case that $mode overrides all previously set switches i.e. it simply sets the switches as defined by the given mode so I am not sure if this is really worth a warning.
Is there ever a time where this would be useful to put a mode switch before the mode? I always think about it like a 2 step process: 1) choose the mode and 2) add extra features via mode switches. Unless I’m missing some use case it just seems like a way to create bugs.
More information about the fpc-pascal