From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.218.7 with SMTP id pc7mr4026627pac.18.1376080531949; Fri, 09 Aug 2013 13:35:31 -0700 (PDT) X-Received: by 10.49.116.243 with SMTP id jz19mr439351qeb.6.1376080531498; Fri, 09 Aug 2013 13:35:31 -0700 (PDT) Path: border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.tele2net.at!news.glorb.com!qx7no20601042pbc.1!news-out.google.com!rn2ni14394pbc.1!nntp.google.com!qx7no20601040pbc.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 9 Aug 2013 13:35:31 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.53.78.59; posting-account=ShYTIAoAAABytvcS76ZrG9GdaV-nXYKy NNTP-Posting-Host: 206.53.78.59 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Generics and Child Packages From: sbelmont700@gmail.com Injection-Date: Fri, 09 Aug 2013 20:35:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 1998 Date: 2013-08-09T13:35:31-07:00 List-Id: Does anyone have any tips or tricks when it comes to using child packages a= nd 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 b= est is a PITA. More critically, any private child units suddenly becomes f= orbidden, 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 c= opies of all the (parameterless) Children, exactly like it would be if nest= ed packages were used instead of child packages? -sb