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-Thread: 103376,e5bfd51af02edca2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news.astraweb.com!router1.astraweb.com!207.217.77.102.MISMATCH!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Re-exporting primitive operations of a private type (like "-", and 'min) References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 01 Nov 2005 04:47:32 GMT NNTP-Posting-Host: 67.3.221.60 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1130820452 67.3.221.60 (Mon, 31 Oct 2005 20:47:32 PST) NNTP-Posting-Date: Mon, 31 Oct 2005 20:47:32 PST Xref: g2news1.google.com comp.lang.ada:6079 Date: 2005-11-01T04:47:32+00:00 List-Id: Anonymous Coward wrote: > > So in the end, the 'base technique doesn't work either, and I'm left > with type conversions that explicitly reference the parent: You should be able to say (in the private part) function Subtract (Left, Right : in Public_Distance_Type) return Public_Distance_Type renames "-"; type Private_Distance_Type is new Public_Distance_Type; -- Subtract is defined for Private_Distance_Type. function "-" (Left, Right : in Private_Distance_Type) return Private_Distance_Type renames Subtract; -- Jeff Carter "Son of a window-dresser." Monty Python & the Holy Grail 12