[fpc-pascal] Implementing AggPas with PtcGraph

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 15 12:55:22 CEST 2017


On Thu, 15 Jun 2017 06:37:41 -0400
"James Richters" <james at productionautomation.net> wrote:

>[...]
> I see, thanks for explaining.   For some reason, I was thinking it was optional to put it in the compiler, but I could also put it in the program.
> Is there no way to set a global define in each program so I could have several programs defined differently and randomly compile them without changing any settings?  

The idea is that you have one project per program. You can compile them
randomly without changing anything.


> It seems some method of doing that would be very useful... but maybe not easy to implement... I suppose it probably compiles all the units first then the main program, so putting anything in the main program wouldn't be seen until it was too late.

There are already many ways to add defines. Adding another one would
make it harder for newbies.

Mattias



More information about the fpc-pascal mailing list