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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,12283be683f6446b X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: Elaborate compile-time error messages (was: GNAT Stream Read ...) Date: 1999/01/07 Message-ID: <771agj$rmc$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 429623113 References: <76tsgd$s0o1@svlss.lmms.lmco.com> <76uv4j$njr$1@nnrp1.dejanews.com> <1999Jan6.072356.1@eisner> X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 129.37.115.171 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Jan 07 03:43:15 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-07T00:00:00+00:00 List-Id: In article <1999Jan6.072356.1@eisner>, Kilgallen@eisner.decus.org.nospam wrote: > In article <76uv4j$njr$1@nnrp1.dejanews.com>, dewar@gnat.com writes: > > That certainly is a high quality error message. I am > curious as to why it is not the default. Is there some > set of programmers who get really mad at having the > compiler be smarter than they are about the > nature of a problem. First, to be clear, the *error messages* are exactly the same in default mode, and the error messages give column numbers. The difference is in printing out the source line, and flagging the column of the error. Most programmers do NOT want this as the default, and note in particular that when you are using an editor that is integrated with the compiler, e.g. EMACS, the verbosity of -gnatv just gets in the way and is unhelpful. > I first used Ada with DEC Ada, where the error messages > are also quite complete, and it has never occurred to me > to look for a way to make them shorter. Yes, but many people feel that the messages from the DEC Ada compiler are *too* verbose at times. If you like long and detailed messages, and don't mind redundant messages (GNAT works hard to eliminate them!), then you might also try the -gnatf switch which stands for full error messages, and gives additional detailed messages in some cases, e.g. every occurrence of an undefined identifier will be flagged -- normally only the first is flagged. Robert Dewar Ada Core Technologies -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own