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-22 02:01:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: amir@iae.nsk.su (Amir Yantimirov) Newsgroups: comp.lang.ada Subject: Re: Imitation is the sincerest form of flattery Date: 22 Mar 2003 02:01:34 -0800 Organization: http://groups.google.com/ Message-ID: <5115eb96.0303220201.44527637@posting.google.com> References: <1047665830.579605@master.nyc.kbcfp.com> <7eee7v4hpvj0i5s345uonlen5315rhiau8@4ax.com> <4dkea.75440$gi1.38045@nwrdny02.gnilink.net> NNTP-Posting-Host: 81.1.215.198 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1048327294 12294 127.0.0.1 (22 Mar 2003 10:01:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 22 Mar 2003 10:01:34 GMT Xref: archiver1.google.com comp.lang.ada:35617 Date: 2003-03-22T10:01:34+00:00 List-Id: Dmitry A. Kazakov wrote in message news:... > On Thu, 20 Mar 2003 14:27:12 GMT, "Frank J. Lhota" > wrote: > > >"Dmitry A. Kazakov" wrote in message > >news:p2vi7vs64p33mpnbsfsn43cvh72l44tm95@4ax.com... > The above isn't an array. You cannot use it where an array is > expected. It has no 'First, 'Last, no slices etc. > > ----- > The problem with ADT in Ada is that technically there is only two (*) > type interfaces you can inherit from (implement privately): > > type ... is private; > type ... is limited private; > > At the same time Ada's set of built-in interfaces is far more richer: > > type ... is access ...; > type ... is delta ...; > type ... is mod ...; > type ... is array ...; > type ... is record ...; > protected type ...; > task type ...; > > etc. > > In my view to fully support ADT would mean that any of such type > interfaces would be available for private implementation. > In my ideal world you don't need inhere anything: http://www174.pair.com/yamir/programming/interfaces.htm Sorry, if I annoy somebody. > ----- > (*) I intentionally omit type ... is tagged ..., because I believe > that *all* types have to be tagged. Not rare opinion. But I found it somewhere contradicting with you background :). Lots of types I works with has hardwired bits structure. Amir Yantimirov > --- > Regards, > Dmitry Kazakov > www.dmitry-kazakov.de