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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,487310d7e1471eac X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!t8g2000prg.googlegroups.com!not-for-mail From: Vadim Godunko Newsgroups: comp.lang.ada Subject: Re: parent package referring to child Date: Fri, 19 Oct 2007 12:45:44 -0000 Organization: http://groups.google.com Message-ID: <1192797944.983864.88460@t8g2000prg.googlegroups.com> References: <1191997397.865251.322480@d55g2000hsg.googlegroups.com> <1192028394.287114.182670@o3g2000hsb.googlegroups.com> <1192042440.388079.69040@o80g2000hse.googlegroups.com> <1192044748.953712.248880@v3g2000hsg.googlegroups.com> <1192047607.865747.220890@50g2000hsm.googlegroups.com> NNTP-Posting-Host: 80.254.112.1 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1192797954 21510 127.0.0.1 (19 Oct 2007 12:45:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 Oct 2007 12:45:54 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t8g2000prg.googlegroups.com; posting-host=80.254.112.1; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2500 Date: 2007-10-19T12:45:44+00:00 List-Id: On Oct 11, 8:12 am, "Randy Brukardt" wrote: > > I think I was the originator of this idea; it allows you to make classwide > calls for objects of types that you don't actually know about. (I'm not sure > that it is as useful as I originally thought, but it certainly is a > less-restrictive rule.) > Thanks Matthew and Randy for hint and explanation ;-) This is really useful (at least for me)! In QtAda binding I have two types Q_Char and Q_String. Its operations have several cross references. For use its operations in prefixed view I need to make it tagged. This is not raise any problem. But with out mentioned rules I must use anonymous access types for parameters (this is bad, objects always distinguishable through it values, no reference semantic is needed) or define both types in same package (this is not so good, both classes has large API).