comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Stupid question
Date: Sat, 14 Apr 2007 09:25:57 +0200
Date: 2007-04-14T09:25:03+02:00	[thread overview]
Message-ID: <1vjl71hygvfw6.1o69sq5iop87x$.dlg@40tude.net> (raw)
In-Reply-To: evp49c$n93$1@jacob-sparre.dk

On Fri, 13 Apr 2007 18:39:52 -0500, Randy Brukardt wrote:

>> 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?
> 
> It's necessary to make children of generic packages work. Recall that a
> child of a generic must be a generic.  The original question included an
> example. (Personally, I think generic children aren't worth the trouble,
> both in the language definition and in implementation. YMMV.)

Ooch. Generics are painful enough. Without generic children they were just
unbearable. Passing 20+ generic instances through formal parameters is a
nightmare.

If Ada had constructs for composing and reusing declarative regions, one
could probably drop children, but it does not.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2007-04-14  7:25 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
2007-04-13 23:39               ` Randy Brukardt
2007-04-14  7:25                 ` Dmitry A. Kazakov [this message]
  -- 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