Frank Heckenbach wrote:
As you probably know, GPC currently converts all identifiers to first letter upper-case/rest lower-case. Since this is often not nice, I plan to change this....
I support Pierre's concerns that it will affect c function interfaces. For example, I have Pascal code
PROCEDURE xflush; EXTERNAL;
Knowing that Pascal converts this to Xflush, that is the name of the c function it calls. If you are suggesting type conversion is no longer done, I presume this will remain as xflush and I could rename the c function. Alternatively I could use asmname. I also assume of course the basic case insensitivity of Pascal will still treat multiple declarations will differing case as identical.
However, I don't really support compiler changes which force legacy code to be changed, regardless of whether there are new warnings or not. I can live with the change and update the code but it is an irritation to our small community number of code developers.
If it goes ahead, the warning name is fine, I think it should default to off and a tristate switch would be preferable.
Given that most Pascal built-in's such as ReadLn and WriteLn (or writeln or WRITELN!) are redefinable identifiers, are all these variations going to be flagged up as warnings. I see a long road ahead to get back to squeaky-clean code!
Regards
David Wood, QinetiQ Farnborough
The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.