On Sat, Jan 11, 2003 at 11:40:23PM +0100, Frank Heckenbach wrote:
I wrote:
- Default? (I suppose off, though I think I myself would prefer on.)
There have been some votes for both sides. So, would anyone object if off is the default, and `-Wall' implies on? (Those who want the other `-Wall' warnings except this one can use `-Wall -Wno-identifier-case' then.)
I agree, this seems reasonable.
On Tue, Jan 14, 2003 at 11:13:57AM +0100, Markus Gerwinski wrote:
Frank Heckenbach wrote:
Why not take the first occurence of a variable as the name to use on all output?
The first, or the most recent one, that's still a question. After some experimenting, there seem to be points for both ways. I'm implementing the latter now (though it should be easy to change). So, e.g.:
program Baz;
procedure Foo; var BaR: Integer; begin end;
begin WriteLn (bar) end.
will complain about an unknown identifier `bar', not `BaR' ...
That's quite natural, since the line in the main program _is_ the first occurence of `bar'. Outside procedure Foo, BaR isn't known at all.
You're right, IMHO. As a related question, it would seem unfortunate to me if -Widentifier-case enforced the same spelling to identifiers in different scopes.
Emil