comp.lang.ada
 help / color / mirror / Atom feed
From: robert_dewar@my-dejanews.com
Subject: Re: Getting GNAT to issue ARM error messages
Date: 1999/02/18
Date: 1999-02-18T00:00:00+00:00	[thread overview]
Message-ID: <7afvot$9hg$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7af1kj$pm7$1@platane.wanadoo.fr

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2475 bytes --]

In article <7af1kj$pm7$1@platane.wanadoo.fr>,
  "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr> wrote:
> steve quinlan a �crit dans le message
<36C9C0BC.EA9C114E@lmco.com>...
> >I think I do remember him agreeing that the error
> >messages should use relevant RM terminology.

> THIS is a real issue. For example, my experience is that
> the term "subtype mark" is very confusing to beginners. I
> always have to explain that it means "the name of
> something that is a (sub)type".

I actually agree with JPR here, despite Steve's memory of
my agreeing to the contrary :-)

RM terminology, especially in RM 95, can often be quite
confusing, for example the value of a variable does not
include the tag, but an error message that depended on
the reader knowing the the use of the word "value" excluded
the tag, where this was critical to understanding, would
likely be confusing.

Similarly, a message that depended on the user knowing that
the term package excludes generic package could also be
confusing.

Almost everyone thinks of a package as having a spec and
a body, and insisting dogmatically on using package
declaration and subprogram declaration in all messages
might well be confusing.

Another example of terminology that could be confusing is
nominal subtype.

Actually what is really needed in some of the error
situations is not just a magic RM reference, or some
magic RM terminology to make things clear, but a long
and extended tutorial on a delicate point in the language.
I often write these tutorials, both here on CLA, and for
our customers! Elaboration issues for example are a
particularly tricky area.

Our vision for error messages is a tool for which we have
a nice name GNOME (GNat Online Message Explanation). The
idea is that you click on a message, and you get all kinds
of extra stuff, extra explanations, multiple RM references
with an explanation of how they apply (RM references
without this explanation are typically of limited value),
references to the Rationale, the AARM, and even to Ada text
books.

Unfortunately, the only thing that exists about this tool
right now is the name :-)

Actually in our experience, relatively few error messages
cause significant confusion at this stage (some of them are
ones for which we already have RM references, but they
still cause confusion!)


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1999-02-18  0:00 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-08  0:00 Getting GNAT to issue ARM error messages David Peterson
1999-02-09  0:00 ` robert_dewar
1999-02-10  0:00   ` Tom Moran
1999-04-20  0:00     ` Robert Dewar
1999-04-20  0:00       ` Ehud Lamm
1999-04-20  0:00         ` Robert Dewar
1999-02-10  0:00   ` David Peterson
1999-02-10  0:00     ` dewar
1999-02-10  0:00     ` Larry Kilgallen
1999-02-12  0:00       ` dewar
1999-02-12  0:00         ` Tucker Taft
1999-02-13  0:00           ` Nick Roberts
1999-02-13  0:00             ` bill
1999-02-14  0:00             ` robert_dewar
1999-02-14  0:00               ` Nick Roberts
1999-02-15  0:00                 ` dewar
1999-02-15  0:00                   ` Ehud Lamm
1999-02-16  0:00                     ` steve quinlan
1999-02-17  0:00                       ` Steve Whalen
1999-02-17  0:00                       ` Pascal Obry
1999-02-17  0:00                       ` Jean-Pierre Rosen
1999-02-18  0:00                         ` robert_dewar [this message]
1999-02-18  0:00                           ` Keith Thompson
1999-02-18  0:00                             ` David Brown
1999-02-18  0:00                             ` robert_dewar
1999-02-18  0:00                             ` dennison
1999-02-23  0:00                               ` Chris Morgan
1999-02-17  0:00                       ` dewar
1999-02-17  0:00                         ` steve quinlan
1999-02-18  0:00                           ` robert_dewar
1999-02-19  0:00                         ` Simon Wright
1999-02-15  0:00                 ` Jerry van Dijk
1999-02-16  0:00                   ` dennison
1999-02-18  0:00                   ` Alexy V Khrabrov
1999-02-14  0:00           ` robert_dewar
replies disabled

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