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,3dab33a3b3df7c89 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-20 15:42:04 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <3B5894DE.5600EF57@earthlink.net> Subject: Re: Problem with enumeration in ADTs MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Fri, 20 Jul 2001 23:38:18 +0100 NNTP-Posting-Host: 62.252.150.51 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 995668617 62.252.150.51 (Fri, 20 Jul 2001 23:36:57 BST) NNTP-Posting-Date: Fri, 20 Jul 2001 23:36:57 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:10378 Date: 2001-07-20T23:38:18+01:00 List-Id: "Marc A. Criley" wrote in message news:3B5894DE.5600EF57@earthlink.net... > Beau wrote: > > > > I have a program that is not recognizing the enumerated type I have created > > inside and using inside an ADT > > The program is about 13 files in size so I can't post each file so if > > someone is willing to help me, could you please email me and maybe I could > > send you the files to see if you can help. Thanks in advance. If this is a > > bad request, just don't post anything and that will be the flame I get. > > thanks > > If you post the type definition, how you're using it, and what exactly > you mean by "not recognizing" it, you'll get a lot of eyes to look it > over for you. (And no flames :-) I mailed Beau and got the sources. The "not recognising" was due to the package location being ommited in a case where the "with" clause was used, but not the "use" clause. (e.g. x := y; not loc.x := y; with no "use" clause). That still get's to me on occasion when I don't use "use" clauses and it was really confusing when I was learning Ada, but GNAT is quite clever in that it tells you where to look (although the message can fade into the background sometimes and getting used to the compiler messages is always a challenge (GNAT has the best error messages so far) ). I don't know if I explained it proper. Don't start a barny on this (the "use" clause)!!! Chris p.s. is it GNAT or AdaGIDE that signals you about a possible mis-spelling? If it's not GNAT, ... then Jeff we gotta have this, I can't live without it :-)