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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,604e0f87aa06eab6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-21 00:49:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!news.tiscali.fr!deine.net!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Imitation is the sincerest form of flattery Date: Fri, 21 Mar 2003 09:49:13 +0100 Message-ID: References: <1047665830.579605@master.nyc.kbcfp.com> <7eee7v4hpvj0i5s345uonlen5315rhiau8@4ax.com> <1ec946d1.0303201528.6c9b2c9e@posting.google.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1048236553 75930794 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:35587 Date: 2003-03-21T09:49:13+01:00 List-Id: On 20 Mar 2003 15:28:17 -0800, mheaney@on2.com (Matthew Heaney) wrote: >Dmitry A. Kazakov wrote in message news:... >> >> To inherit the type interface. For example, an array type implemented >> by a record type: >> >> -- This is not Ada! >> type Unbounded_String is >> private array (Integer range <>) of Character; >> >> private >> type Unbounded_String is record >> ... >> end record; >> -- Definition of implemented abstract array opeartions follows > >Can't you do this? > >package P is > > type Unbounded_String (<>) is private; > >private > > type Unbounded_String is > array (Positive range <>) of Character; > >end P; This would be a private type implemented by an array, but not an array implemented by some other type. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de