comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Help Me Please :)
Date: 2000/03/04
Date: 2000-03-04T00:00:00+00:00	[thread overview]
Message-ID: <89rqgp$nmb$1@nnrp1.deja.com> (raw)
In-Reply-To: 2000Mar3.183321.69279@ludens

In article <2000Mar3.183321.69279@ludens>,
  gazso@ludens.elte.hu (Erdelyi Gaspar) wrote:

> I think that GNAT is not comparable to DEC Ada (for OpenVMS)
> which provides very useful error messages. DEC Ada is Ada83
> only and the prices are not comoparable, too...

Well the prices are not that far from comparable, but that's
another issue anyway. With regard to error messages there are
four cases of interest:

1. Cases where DEC Ada 83 simply gets confused, and GNAT does
not. There are quite a few of these, one notable example is
the GNAT circuit for dealing with the semicolon/IS confusion.
All other compilers I know can get confused by this, including
DEC Ada 83.

2. Cases where GNAT gets confused, and DEC Ada 83 does not. I
don't currently know of any such cases, but that does not mean
they do not exist. If you know of such cases, it is always
useful to submit them to report@gnat.com, we are always working
to tune the error message circuit (indeed giving good messages
is a hobby of mine :-)

3. Cases where neither compiler gets confused and the error
messages are comparable. Having worked through the entire
DEC test suite, which contains thousands of examples of
error situations, I would say this is probably the most
common case.

4. Cases where neither compiler gets confused and the
error messages are substantially different. These are
interesting cases to look at. Sometimes there is simply
a difference in style. GNAT aims at trying to keep error
messages short and informative, whereas DEC Ada 83 often
gives rather voluminous messages. In GNAT, you can more
nearly approximate this verbose mode by using the -gnatf
switch. But there will still be differences, some of these
might just be a matter of taste, some may be cases where
real improvements are possible (there are certainly cases
in the DEC test suite where the GNAT message is more useful,
I don't know of any cases left where I consider the DEC
Ada 83 message significantly better in this test suite,
because we used the suite to tune up such cases in GNAT :-)

Here again, in case 4, it is very useful if you send in
cases where you think an error message can be improved.
This actually is a much more general request than just
comparing these two compilers. Any time you get a compile
time message that you think could be clearer, send it along.
We may well agree, and we may well be able to do something
about it.

Robert Dewar
Ada Core Technologies


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-03-04  0:00 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-29  0:00 Help Me Please :) Will Mann
2000-03-01  0:00 ` Robert Dewar
2000-03-03  0:00   ` Florian Weimer
2000-03-03  0:00     ` tmoran
2000-03-04  0:00       ` Richard D Riehle
2000-03-05  0:00         ` Steve Arnold
2000-03-17  0:00         ` Robert A Duff
2000-03-18  0:00           ` James S. Rogers
2000-03-19  0:00             ` Robert A Duff
2000-03-20  0:00               ` Brian Rogoff
2000-03-20  0:00                 ` Tucker Taft
2000-03-18  0:00           ` Richard D Riehle
2000-03-20  0:00           ` Florian Weimer
2000-03-22  0:00           ` Mats Weber
2000-03-27  0:00             ` Robert A Duff
2000-03-27  0:00               ` Hyman Rosen
2000-03-28  0:00               ` Robert Dewar
2000-03-30  0:00                 ` Mats Weber
2000-04-06  0:00                   ` Exceptions (was: " Wes Groleau
2000-04-07  0:00                     ` Mats Weber
2000-03-28  0:00               ` reason67
2000-03-28  0:00                 ` Robert Dewar
2000-03-29  0:00                   ` Simon Wright
2000-03-29  0:00                   ` reason67
2000-04-06  0:00                   ` Simon Pilgrim
2000-04-07  0:00                     ` Robert Dewar
2000-04-10  0:00                       ` r_c_chapman
2000-03-29  0:00               ` Richard D Riehle
2000-03-29  0:00                 ` Robert Dewar
2000-03-31  0:00                   ` Richard D Riehle
2000-03-31  0:00                     ` Jean-Pierre Rosen
2000-03-31  0:00                       ` Pascal Obry
2000-03-30  0:00                 ` Mats Weber
2000-03-31  0:00                   ` Richard D Riehle
2000-04-06  0:00                 ` Wes Groleau
2000-03-30  0:00               ` Tucker Taft
2000-03-30  0:00               ` Mats Weber
     [not found]     ` <2000Mar3.183321.69279@ludens>
2000-03-03  0:00       ` Larry Kilgallen
2000-03-04  0:00       ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-02-29  0:00 Will Mann
2000-02-29  0:00 ` Stanley R. Allen
2000-02-29  0:00   ` Al Johnston
2000-03-01  0:00     ` Robert Dewar
2000-03-01  0:00     ` tmoran
2000-03-01  0:00       ` Al Johnston
2000-03-02  0:00       ` Aidan Skinner
2000-03-01  0:00     ` Robert Dewar
2000-03-01  0:00       ` Al Johnston
2000-03-01  0:00     ` Stanley R. Allen
2000-03-01  0:00 ` James Bean
2000-03-01  0:00 ` tmoran
     [not found] <df481109.0106140310.5d923746@posting.google.com>
     [not found] ` <9gb1uu$87u7o$1@ID-52877.news.dfncis.de>
2001-06-19  2:59   ` help me please! Ken Garlington
2001-06-16 10:20     ` C.D.Damron
2001-06-20  6:06     ` John Keeney
replies disabled

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