[fpc-pascal] mode switch madness

Ryan Joseph ryan at thealchemistguild.com
Fri Apr 12 16:37:34 CEST 2019



> On Apr 12, 2019, at 10:15 AM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> That would break with the rule that directives do not cross unit boundaries.
> It has far-reaching consequences.
> 
> Better introduce a command-line switch to set mode switches.

But is it maybe time we reconsider this or add an extension? It’s really getting out of hand now.

Problem with compiler switches is that they’re decoupled from the program itself and not documented in the actual programs source code. Honestly I’d prefer all compiler switches be stored in the program file so we didn’t have distribute extra files that contain command line arguments.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list