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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5c89acd494ea9116 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Self pointer in limited record Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1183577468.034566.57830@n60g2000hse.googlegroups.com> <1188578849.187422.280620@50g2000hsm.googlegroups.com> <9fy1xoukz1e3$.h574sqmiauri$.dlg@40tude.net> <46d968ee$0$30368$9b4e6d93@newsspool4.arcor-online.net> <137iu0lr82dtb$.wqy3zjz2vr9q.dlg@40tude.net> <46d972e8$0$30384$9b4e6d93@newsspool4.arcor-online.net> <1alyfwaig93sk$.99oy269uon$.dlg@40tude.net> <46d9c138$0$4531$9b4e6d93@newsspool3.arcor-online.net> Date: Sat, 1 Sep 2007 22:09:11 +0200 Message-ID: <1rt8kdcrj6tf.1qgvycc6vh357$.dlg@40tude.net> NNTP-Posting-Date: 01 Sep 2007 22:08:51 CEST NNTP-Posting-Host: 2d247eec.newsspool2.arcor-online.net X-Trace: DXC=eA_6WL7LebcPXlQ;h]GTMdA9EHlD;3Ycb4Fo<]lROoRa<`=YMgDjhgbaQbJAHLHRUe[6LHn;2LCVn[ On Sat, 01 Sep 2007 21:49:52 +0200, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: > >>> 2 - Nesting packages is an option, a distinguishing feature >>> of Ada IMO; a package nested inside a subprogram is a >>> simple solution to the life cycle problem of module style >>> objects. >> >> Hmm, a subprogram has all properties of a package. So there is no obvious >> reason why nested package (except instances of generic packages, of >> course), might be useful there. > > You can have two nested packages, or more. :-) If you don't need a single, why would you two? Packages are to bind together coupled reusable things. A package within an implementation cannot serve this purpose. Your example with a farm should better be a container type with house and barn being objects. Farms can have two or more barns. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de