comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephe.Leake@nasa.gov>
Subject: Re: Case dependence and coding standards
Date: 03 Jun 2003 15:38:19 -0400
Date: 2003-06-03T19:54:29+00:00	[thread overview]
Message-ID: <ur86b0x5g.fsf@nasa.gov> (raw)
In-Reply-To: wccr86bjcdw.fsf@shell01.TheWorld.com

Robert A Duff <bobduff@shell01.TheWorld.com> 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



  parent reply	other threads:[~2003-06-03 19:38 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-03  5:05 Case dependence and coding standards Fionn mac Cuimhaill
2003-06-03 17:31 ` Robert A Duff
2003-06-03 17:46   ` Vinzent Hoefler
2003-06-03 19:04     ` Robert A Duff
2003-06-03 23:37       ` Randy Brukardt
2003-06-04  2:39         ` Wesley Groleau
2003-06-04 13:28           ` Georg Bauhaus
2003-06-04 15:44             ` Preben Randhol
2003-06-04 22:32             ` Wesley Groleau
2003-06-05 12:01               ` Georg Bauhaus
2003-06-05 15:36                 ` Preben Randhol
2003-06-05 17:41                   ` Wesley Groleau
2003-06-05 17:47                     ` Preben Randhol
2003-06-05 17:51                       ` Preben Randhol
2003-06-05 18:32                 ` Wesley Groleau
2003-06-06  8:58                   ` Georg Bauhaus
2003-06-07  0:53                     ` Wesley Groleau
2003-06-10 15:05                       ` Georg Bauhaus
2003-06-05 17:32               ` Wesley Groleau
2003-06-05 17:43                 ` Preben Randhol
2003-06-04  8:39       ` Vinzent Hoefler
2003-06-04 16:32         ` Stephen Leake
2003-06-05  1:27           ` Robert I. Eachus
2003-06-05  7:47           ` Vinzent Hoefler
2003-06-05 17:47             ` Stephen Leake
2003-06-05 19:43               ` Wesley Groleau
2003-06-06  9:27               ` Georg Bauhaus
2003-06-06 10:29                 ` Preben Randhol
2003-06-03 19:38   ` Stephen Leake [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-04 17:00 Lionel.DRAGHI
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox