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,1ed4b5bd91d02f0b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e10g2000prf.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: using an Ada.Container as a private type Date: Thu, 3 Apr 2008 13:41:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5c9b6d27-d54a-43ae-aba8-8ef4b522fbc5@e10g2000prf.googlegroups.com> References: <42c84166-c7e4-42e0-b1bf-2104d3bb0cda@e10g2000prf.googlegroups.com> NNTP-Posting-Host: 85.3.193.150 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1207255270 5697 127.0.0.1 (3 Apr 2008 20:41:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Apr 2008 20:41:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e10g2000prf.googlegroups.com; posting-host=85.3.193.150; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20789 Date: 2008-04-03T13:41:10-07:00 List-Id: On 3 Kwi, 17:29, Graham wrote: > package Payment_Stream_Package is new Ada.Containers.Ordered_Maps( > Element_Type => Money, > Key_Type => Positive ); > > type Payment_Stream is new Payment_Stream_Package.Map; Instead of a solution, I have a question: Why do you derive from Map? Which operations of Map do you plan to override? Do you ever plan to pass Payment_Stream where Payment_Stream_Package.Map'Class is expected? What effect would you like to achieved this way? Why derivation and not composition? -- Maciej Sobczak * www.msobczak.com * www.inspirel.com