Eike Lange wrote:
You mean something like --no-class ?
No, I mean something like `--disable-keyword="Class"'.
"Class" is a thing only used by Delphi (please correct me, if its not true).
It's also used in ANSI Object Pascal.
What do you think about --no-delphi which disables Delphi dialect support without affecting the rest for this special purpose?
No, thanks. ;-) Right now, it's already terribly complicated to handle restrictions to certain Pascal dialects everywhere. You do not really want to know how many places will have to be changed in the compiler in order to make GPC accept everything which is either in ISO Extended Pascal or in Borland's Delphi, but not the stuff from Borland Pascal 7.0 with the exception of the UCSD Pascal extensions, which should be accepted ...
I think that GPC's behaviour to accept a mixture of _everything_ by default with switches to restrict it to certain dialects and more switches for dialect-independent fine-tuning is quite reasonable.
Peter