I always prefer to get my code compiling with -Wall without warnings if at all possible. But it seems to be that the capitalisation warning is a little over the top:
program test;
type MyInt = Integer; MyRec = record myint: Integer; end;
begin end.
complains about that capitalisation of myint and MyInt. To me, these two have nothing to do with each other.
I would have thought the warning would only apply to the case where a references to an identifier is different to that with which it was defined. So var a: MYINT; would complain, as would rec.myInt, but
type MyInt = Integer; MyRec = record myint: Integer; end; MyRec2 = record MYINT: Integer; end;
var myInt: Integer;
should not generate any warnings.
Is this a limitation in the way GPC handles identifiers (perhaps in the hash table or some such), or is this a deliberate design decision?
Thanks, Peter.