Frank Heckenbach wrote:
While I'm at it, it might be easy to add a warning if an identifier is used with varying case (something like `var Foo: Integer; [...] WriteLn (FOO)').
- Any ideas for the name of the option? (`-Widentifier-case'?)
Sounds good to me.
- Default? (I suppose off, though I think I myself would prefer on.)
Me too, I'd prefer "on". Does someone insist on "off" due to traditional Pascal behaviour?
(If "on" is the default, the option should IMO get another name. E.g. `-Wignore-identifier-case'.)
- Should it work across units/modules? Or should it be a tri-state option (never/current file/global)?
Tri-state, I suppose. If you yourself care for identifier cases, but use units by someone who doesn't, it would be good to disable the warnings for that units.
One question: What convention will GPC use instead of the old one? Will the asmnames be verbatim as defined? (E.g. if I write "type myFoo", the asmname of that type will be 'myFoo'?)
Yours,
Markus