comp.lang.ada
 help / color / mirror / Atom feed
* Problem with enumeration in ADTs
@ 2001-07-20 20:30 Beau
  2001-07-20 21:23 ` Marc A. Criley
  0 siblings, 1 reply; 4+ messages in thread
From: Beau @ 2001-07-20 20:30 UTC (permalink / raw)


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

--
~Beau~
beau@hiwaay.net






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with enumeration in ADTs
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Marc A. Criley @ 2001-07-20 21:23 UTC (permalink / raw)


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 :-)

Marc A. Criley
Senior Staff Engineer
Quadrus Corporation
www.quadruscorp.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with enumeration in ADTs
  2001-07-20 21:23 ` Marc A. Criley
@ 2001-07-20 22:38   ` chris.danx
  2001-07-21  5:05     ` Ed Falis
  0 siblings, 1 reply; 4+ messages in thread
From: chris.danx @ 2001-07-20 22:38 UTC (permalink / raw)



"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 :-)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with enumeration in ADTs
  2001-07-20 22:38   ` chris.danx
@ 2001-07-21  5:05     ` Ed Falis
  0 siblings, 0 replies; 4+ messages in thread
From: Ed Falis @ 2001-07-21  5:05 UTC (permalink / raw)


"chris.danx" wrote: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 :-)

It's GNAT.

- Ed




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-21  5:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2001-07-21  5:05     ` Ed Falis

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