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.5 required=5.0 tests=BAYES_00,MSGID_RANDY, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,32dcee4844599b87 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-19 07:50:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!feed2.onemain.com!feed1.onemain.com!feeder.qis.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: GNAT Error message Date: Tue, 19 Dec 2000 15:37:49 GMT Organization: Deja.com Message-ID: <91nvcc$uug$1@nnrp1.deja.com> References: <3A3D01EA.37CB440B@libertysurf.fr> <91jnbv$joo$1@nnrp1.deja.com> <3A3E888E.E897AF0F@libertysurf.fr> NNTP-Posting-Host: 205.232.38.41 X-Article-Creation-Date: Tue Dec 19 15:37:49 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x73.deja.com:80 (Squid/1.1.22) for client 205.232.38.41 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3248 Date: 2000-12-19T15:37:49+00:00 List-Id: In article <3A3E888E.E897AF0F@libertysurf.fr>, Thierry&Annick wrote: > Robert Dewar a �crit : > > > In article <3A3D01EA.37CB440B@libertysurf.fr>, > > Thierry&Annick wrote: > > > > > test.ada:13:38: invalid operand types for operator "-" > > > test.ada:13:38: left operand has type "Index_Type" defined > > at test.ada:2 > > > test.ada:13:38: right operand has type "Index_Type" defined > > ... > > > Feel free to suggest how GNAT could make this clearer (and > > submit your suggestion to report@gnat.com). I don't really > > see any way of making this clearer. > > I suggest 'no binary operator "-" for enumeration type > Index_Type' Well the error messages that it giving now give this information in a much more precise form, by telling you that there is no "-" operator for the particular types you used, and then telling you what those types are. So in fact your suggestion here would give less information. What would be useful is to explain what was unclear about the original message. We want to make the message as clear as possible, but we don't want to lose information doing do (indeed the addition of the operand types in the error messages was done fairly recently, and has proved extremely helpful). Sent via Deja.com http://www.deja.com/