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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,2b4e4eade0270b85 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-30 08:56:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!news.bu.edu!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: (generic) child package of generic package; intantiation of Date: Tue, 30 Jan 2001 11:56:03 -0500 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3A76F223.B0D07EB7@averstar.com> References: <1Ihd6.38$cd1.2031@nnrp1.sbc.net> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: inmet2.burl.averstar.com 980873763 23223 141.199.8.77 (30 Jan 2001 16:56:03 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 30 Jan 2001 16:56:03 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:4714 Date: 2001-01-30T16:56:03+00:00 List-Id: "Peter Hend�n" wrote: > > Mark, Marc, Pat: > > Thanks a lot. I should have known this, but got a bit confused over other > errors I got when I first compiled. Unfortunately, Mark, Marc, and Pat all forgot to mention that you have to "with" the child unit where you plan to instantiate it. The way to think about a "with" clause for a child is that it effectively inserts the child into the parent. With a child of a generic, inserting the child into the generic parent means that all instances of the generic parent now include the generic child nested within them. You can then instantiate one of those nested generics, given any instance of the parent. But the key thing to remember is that the nested generic is only made visible where a "with" clause for the generic child applies. > > Thanks again > Peter > > -- > Peter Hend�n http://www.algonet.se/~phenden > ICQ: 14672398 > Teknisk Dokumentation AB http://www.tdab.com -- -Tucker Taft stt@avercom.net http://www.averstar.com/~stt/ Chief Technology Officer, AverCom, Inc. (A Titan Company) Burlington, MA USA (AverCom was formed 1/1/01 from the Commercial Division of AverStar) (http://www.averstar.com/services/ebusiness_applications.html)