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 X-Google-Thread: 103376,32dcee4844599b87 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-18 13:56:02 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!newsfeed.rt.ru!news.algonet.se!newsfeed1.telenordia.se!algonet!isdnet!isdnethub!not-for-mail From: Thierry&Annick Newsgroups: comp.lang.ada Subject: Re: GNAT Error message Date: Mon, 18 Dec 2000 22:58:38 +0100 Message-ID: <3A3E888E.E897AF0F@libertysurf.fr> References: <3A3D01EA.37CB440B@libertysurf.fr> <91jnbv$joo$1@nnrp1.deja.com> NNTP-Posting-Host: dyn-213-36-108-209.ppp.libertysurf.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news5.isdnet.net 977176460 74727 213.36.108.209 (18 Dec 2000 21:54:20 GMT) X-Complaints-To: abuse@isdnet.net NNTP-Posting-Date: 18 Dec 2000 21:54:20 GMT X-Mailer: Mozilla 4.5 [fr] (Win95; I) X-Accept-Language: fr Xref: supernews.google.com comp.lang.ada:3231 Date: 2000-12-18T21:54:20+00:00 List-Id: 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' > > > The compiler is telling you that there is no "-" operator So it should tell it as you do. I spent some time finding my error, I hope to remember it next time ...