comp.lang.ada
 help / color / mirror / Atom feed
From: Markus E Leypold <development-2006-8ecbb5cc8aREMOVETHIS@ANDTHATm-e-leypold.de>
Subject: Re: Stupid question
Date: Fri, 13 Apr 2007 21:33:16 +0200
Date: 2007-04-13T21:33:16+02:00	[thread overview]
Message-ID: <y7zm5chxxf.fsf@hod.lan.m-e-leypold.de> (raw)
In-Reply-To: evok0d$278$1@jacob-sparre.dk


"Randy Brukardt" <randy@rrsoftware.com> writes:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
> news:190oqb9t3eplx$.ffakhbeqreff$.dlg@40tude.net...
>> On 13 Apr 2007 08:35:53 -0700, Adam Beneschan wrote:
> ...
>> This does not outlaw A.B, it just cannot. A trivial counter example is:
>>
>> with A.B;  -- This is 100% legal
>>
>> With clause is defined in 10.1.2(4) as "with <name>". Here <name> is the
>> same as in 12.7. It refers to 4.1 and is resolved to <selected_component>.
>>
>> Any language lawyers here?
>
> Sorry, Adam is right. A generic package is not a package (that's a standing
> ARG joke, not one of the RM's finest hours of terminology). Context clauses
> have their own, unique visibility rules defined in 10.1.6; you can't use
> them as a counterexample for anything. There is a very complex rule that
> allows you to say A.B there, because it normally would not be.
> Interestingly, the Ada 95 standard did not allow naming a grandchild that
> way (that is, A.B.C), which demonstrates how complex it is.

So it is possible to say 'with A.B' in the context of a compilation
unit if A is "only" a generic (as opposed to an instance)? Even in Ada
95? Is there any example for that somewhere? 

Regards Markus






  reply	other threads:[~2007-04-13 19:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12 20:05 Stupid question Dmitry A. Kazakov
2007-04-12 21:40 ` Adam Beneschan
2007-04-12 22:02   ` Adam Beneschan
2007-04-13  8:20     ` Dmitry A. Kazakov
2007-04-13 13:53       ` Anh Vo
2007-04-13 15:35       ` Adam Beneschan
2007-04-13 17:12         ` Dmitry A. Kazakov
2007-04-13 18:14           ` Adam Beneschan
2007-04-13 18:50             ` Adam Beneschan
2007-04-13 19:01           ` Randy Brukardt
2007-04-13 19:33             ` Markus E Leypold [this message]
2007-04-13 23:39               ` Randy Brukardt
2007-04-14  7:25                 ` Dmitry A. Kazakov
  -- strict thread matches above, loose matches on Subject: below --
2003-10-08  3:12 stupid question Shanon Fernald
2003-10-08  3:31 ` James Rogers
2003-10-08  4:34 ` Steve
2003-10-08 12:54   ` Marin David Condic
2003-10-08 13:01 ` Marin David Condic
2003-10-08 22:18 ` Robert I. Eachus
2003-10-09 10:09   ` Steffen Huber
2003-10-10 16:02     ` Robert I. Eachus
replies disabled

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