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,8c2209656cc44d38 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-27 18:39:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Emacs and Ada. Date: 27 Oct 2001 18:39:34 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0110271739.218b7b41@posting.google.com> References: <3BD96830.1FFA30AF@sparc01.ftw.rsc.raytheon.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1004233174 7277 127.0.0.1 (28 Oct 2001 01:39:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Oct 2001 01:39:34 GMT Xref: archiver1.google.com comp.lang.ada:15306 Date: 2001-10-28T01:39:34+00:00 List-Id: Ted Dennison wrote in message news:... > Often times a LRM reference wouldn't be particularly > helpful to anyone. Note that GNAT *does* include RM references in those (relatively unusual) cases where we think it is helpful to do so. I have often found that at an abstract level people think it is a good idea to give RM references, but in the past threads I have always issued the suggestion that people show an example of a GNAT error message where the RM reference would be helpful, and so far the number of examples received = ZERO. If you *do* find such a case, by all means let us know, and we will have a look. We have no objection in principle to RM references where they are helpful, we just don't find many such cases. As Ted very usefully points out it is better to see 1. package x is 2. First_Segment : Integer := 3; 3. Second_Segment : Integer := Firt_Segment + 1; | >>> "Firt_Segment" is undefined >>> possible misspelling of "First_Segment" 4. end; (the gnat output) than >>> "Firt_Segment" is undefined >>> identifiers must be declared before use see RM .. and this is a perfect case where an RM reference is utterly and completely gratuitous. Equally if you write x := a + b A message saying missing semicolon is much better than something like incorrect syntax for assignment statement, see RM ... But I hereby reissue the challenge perhaps this time someone will rise to it, to give an example of a GNAT message which does not have an RM reference where an RM reference would make the message clearer to the user.