Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Waldek Hebisch
Subject: Upper/lower case in identifiers
Date: 11 Sep 2004, 02:51:31
Dr. Thomas D. Schneider wrote: > > Demonstrate capitals bug in GPC. The name of a local procedure is > objected to by GPC if there is a global by the same name but > different capitalization. > > In theory the compiler should keep track of what is local and what > is global anyway, so it should be able to avoid this. > > It is a problem because if one imports procedures from another > program, they are not being treated as pure 'black boxes'. > Instead, local variable names are being compared to the global > variable names. > > In otherwords, the scope rule of Pascal is being violated > when these warnings are generated. > > This problem is not fixed by adding the flag: > > -Widentifier-case-local > Warn about an identifier written with varying case within one > program/module/unit. > Note that your program consted of a single module (in other words it contained just main program, without EP modules or units). The compiler internally keeps only one copy of given identifier -- the meaning changes according to the scope, but there is only one place to store the spelling. It is natural to take scope rules into account when warning about capitalization, but that requires extra work.
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | Upper/lower case in identifiers | 11 Sep 2004, 07:15:29 |
| Prof. Harley Flanders | Upper/lower case in identifiers | 11 Sep 2004, 09:36:57 |
| Author | Subject | Date |
|---|---|---|
| Tom Schneider | Upper/lower case in identifiers | 10 Sep 2004, 18:42:00 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).