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,f37364fd74b84042 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!s37g2000prg.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Child Package Operator Visibility Date: Mon, 7 Apr 2008 08:25:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <02a14c57-05d3-4276-9626-113a7518f2c4@s37g2000prg.googlegroups.com> References: <6b08d1d0-1896-4951-8528-e11bef196dd7@1g2000prf.googlegroups.com> NNTP-Posting-Host: 209.225.224.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1207581954 8100 127.0.0.1 (7 Apr 2008 15:25:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 Apr 2008 15:25:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s37g2000prg.googlegroups.com; posting-host=209.225.224.254; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 3.0.04506.648),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20867 Date: 2008-04-07T08:25:50-07:00 List-Id: On Apr 7, 8:03=A0am, Adam Beneschan wrote: > On Apr 5, 7:19 am, "(see below)" wrote: > > In fact, this sort of thing is an idiom I used to use a lot, before > Ada 95 gave us "use type". =A0I would declare a package with the types I > wanted to declare, and then define a nested package Operators which > redefined all the operator symbols on those types using renaming, so > that another package could say "use Pkg.Operators" without having to > "use Pkg" which would make too much visible. > I like your design. It is a very creative idea. This can even be applied for non-primitive operators. AV