From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,997e6472f58cc955 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-03 12:44:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Case dependence and coding standards Date: 03 Jun 2003 15:38:19 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <035odv8mfiksmqo69q0250qp141oebtdro@4ax.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1054670069 21147 128.183.235.92 (3 Jun 2003 19:54:29 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 3 Jun 2003 19:54:29 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:38549 Date: 2003-06-03T19:54:29+00:00 List-Id: Robert A Duff writes: > (snip stuff about case errors) > > It would be nicer to have a compiler that simply corrected such errors > in the source file, instead of complaining about them. The goal is to > make consistent/readable code, not to punish programmers who are too > lazy to hit the shift key. That's what compilers integrated into IDE's are for. For GNAT under Emacs or GPS, when the compiler complains about a case mismatch, you hit a key, and the editor fixes it (it reads the compiler's error message to know what to do). Sometimes, of course, it's the defining instance that's wrong, so the compiler error message contains info on where that is, so you can get to it easily. In my Emacs, F6 is bound to 'next-error', and C-F6 to 'gnat-fix-error'. It's amazing how many times I just hit F6, C-F6 to get thru all the error messages. Kind of fun :). -- -- Stephe