comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <chris.danx@ntlworld.com>
Subject: Re: Problem with enumeration in ADTs
Date: Fri, 20 Jul 2001 23:38:18 +0100
Date: 2001-07-20T23:38:18+01:00	[thread overview]
Message-ID: <do267.57785$WS4.8712224@news6-win.server.ntlworld.com> (raw)
In-Reply-To: 3B5894DE.5600EF57@earthlink.net


"Marc A. Criley" <mcqada@earthlink.net> 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 :-)




  reply	other threads:[~2001-07-20 22:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-20 20:30 Problem with enumeration in ADTs Beau
2001-07-20 21:23 ` Marc A. Criley
2001-07-20 22:38   ` chris.danx [this message]
2001-07-21  5:05     ` Ed Falis
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox