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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.200.202 with SMTP id ex10mr25921302qab.8.1372677283379; Mon, 01 Jul 2013 04:14:43 -0700 (PDT) X-Received: by 10.49.25.36 with SMTP id z4mr692816qef.6.1372677283359; Mon, 01 Jul 2013 04:14:43 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!j2no1924108qak.0!news-out.google.com!f7ni121qai.0!nntp.google.com!j2no3158451qak.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 1 Jul 2013 04:14:43 -0700 (PDT) In-Reply-To: <736ca511-696e-47c0-9936-5f6ce0128138@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.156.46.210; posting-account=a23u_AkAAAB-Xz81hSqodYsmJRrMwioK NNTP-Posting-Host: 80.156.46.210 References: <63a787e1-c3d9-4bfd-a7e6-6ff0f0c8236b@googlegroups.com> <22fdedd9-f5e2-4489-bd41-7fb3b21e9992@googlegroups.com> <736ca511-696e-47c0-9936-5f6ce0128138@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7844631e-9668-4471-bc53-9f856e0fb1d7@googlegroups.com> Subject: Re: "shadow" package hierarchy using renaming of child packages From: Oliver Kellogg Injection-Date: Mon, 01 Jul 2013 11:14:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 2204 Xref: number.nntp.dca.giganews.com comp.lang.ada:182174 Date: 2013-07-01T04:14:43-07:00 List-Id: On Monday, July 1, 2013 11:37:23, UTC+2 AdaMagica wrote: > > > [...] In the example, apparently the declaration "subtype T is Foo.T;" in the > > Shadow package spec creates the structural equivalence. > No, it hasn't anything to do with structural equivalence. > Just compare: > [...] Yikes, you're right! Looking from the user perspective: Imagine Shadow to preexist, with much code written against its API. Imagine that a new package Foo representing a light-weight subset of the Shadow API is added to the system at a later date. Now the interesting thing is that the existing applications do not need to be changed. In shadow-test.adb, I : Shadow.T := Shadow.Child.Create; the declaration of T in Shadow ensures that. Thanks.