comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Compiler complaint legal?
Date: Wed, 20 Jun 2001 17:51:39 GMT
Date: 2001-06-20T17:51:39+00:00	[thread overview]
Message-ID: <Lo5Y6.2832$yp1.84754@www.newsranger.com> (raw)
In-Reply-To: mailman.993057563.10765.comp.lang.ada@ada.eu.org

In article <mailman.993057563.10765.comp.lang.ada@ada.eu.org>, M. A. Alves
says...
>
>Package O defines type O.  GNAT does not recognize the type here:
>
>with O; use O;
>procedure O_Test is
>  Object: O; -- HERE

I don't believe you can have packages and types with the same name in the same
scope. Under the circumstances, I'd want to keep the package name.

You should probably aviod naming things the same as their enclosing package. On
the other hand, this is yet another reason to aviod the use clause.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-06-20 17:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-20 18:17 Compiler complaint legal? M. A. Alves
2001-06-20 17:51 ` Ted Dennison [this message]
2001-06-20 18:02   ` Jean-Pierre Rosen
2001-06-20 21:33 ` Robert A Duff
2001-06-21 23:40 ` Jeff Creem
replies disabled

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