comp.lang.ada
 help / color / mirror / Atom feed
From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: Inheritance with Ada types
Date: Tue, 9 Feb 2010 02:19:36 -0800 (PST)
Date: 2010-02-09T02:19:36-08:00	[thread overview]
Message-ID: <1d6a685b-c07d-42fa-b8f4-02c74ac70169@u26g2000yqm.googlegroups.com> (raw)
In-Reply-To: ir8rkh.hqm.ln@hunter.axlog.fr

On 9 fév, 10:11, Jean-Pierre Rosen <ro...@adalog.fr> wrote:
> > clause... the use clause is particularly evil here.
With package named Parent, containing a type named Parent, having a
use clause on Parent brings into a context where the name Package can
be both resolved as a package or as a type.

The use clause is clearly involved here, as one the way to get ride of
this error is to remove the use clause. The other way being to rename
either the type either the package.

May be I was wrong to say the use clause is particularly evil there :
I should have said “ the use clause is particularly vicious there
” (due to its vicious side effect in such a kind of context).




  reply	other threads:[~2010-02-09 10:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-09  2:16 Inheritance with Ada types Bryan
2010-02-09  2:57 ` Hibou57 (Yannick Duchêne)
2010-02-09  9:11   ` Jean-Pierre Rosen
2010-02-09 10:19     ` Hibou57 (Yannick Duchêne) [this message]
2010-02-09 11:23       ` Jean-Pierre Rosen
2010-02-10  2:47         ` Randy Brukardt
2010-02-09 10:22     ` Hibou57 (Yannick Duchêne)
2010-02-09 15:08 ` Robert A Duff
2010-02-09 23:39   ` Bryan
replies disabled

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