According to Berend de Boer:
[...] using an ISO form of pascal like standard-pascal or extended-pascal, compiler directives are turned off by default and you explicitly have to enable them?
This is the case in some sense: You get warnings when you use compiler directives together with `--standard-pascal', `--extended-pascal', or `--object-pascal'. Use `--pedantic-errors' to turn these warnings into error messages.
My concern is the following: I've a team of programmers building an extended pascal program. How can I be sure that they don't use some gpc feature? I have the -extended-pascal directive to check if it's Extended Pascal, but how can I check if they use some compiler directive in the source to force the compiler doing something??
How can you check whether they really use the `--extended-pascal' switch? You have to stand behind them and watch what commands they type to compile. What about just saying them that they must not use compiler directives?
BTW, the `--pedantic' switch is intended to check whether some code is *completely* portable. With `--pedantic', you get warnings about everything for which a Pascal compiler is known not to accept it. (* Read: You get warnings about just *everything*. :*)
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal [970412] - http://home.pages.de/~gnu-pascal/ [970125]