comp.lang.ada
 help / color / mirror / Atom feed
* Generics and Child Packages
@ 2013-08-09 20:35 sbelmont700
  2013-08-10  9:25 ` AdaMagica
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: sbelmont700 @ 2013-08-09 20:35 UTC (permalink / raw)


Does anyone have any tips or tricks when it comes to using child packages and generics?  The whole thing seems pretty kludgy: as soon as you make the parent generic, any public child unit suddenly becomes "faux generic", and has to be instantiated explicitly albeit without any parameters, which at best is a PITA.  More critically, any private child units suddenly becomes forbidden, and you end up with either one gigantic package (bad), or having to split it out and with them in, breaking encapsulation (worse).  Why can't I just instantiate the Parent, and automatically bring along respective copies of all the (parameterless) Children, exactly like it would be if nested packages were used instead of child packages?

-sb


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

end of thread, other threads:[~2013-08-12 21:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09 20:35 Generics and Child Packages sbelmont700
2013-08-10  9:25 ` AdaMagica
2013-08-10 15:39 ` Felix Krause
2013-08-11 15:49 ` sbelmont700
2013-08-11 16:51   ` Robert A Duff
2013-08-11 18:30   ` AdaMagica
2013-08-11 19:20   ` Shark8
2013-08-12 20:27   ` Randy Brukardt
2013-08-12 21:58     ` Simon Wright
2013-08-12 20:19 ` Randy Brukardt

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