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 09:16:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Imitation is the sincerest form of flattery Date: 21 Mar 2003 18:16:19 +0100 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: <1047665830.579605@master.nyc.kbcfp.com> <7eee7v4hpvj0i5s345uonlen5315rhiau8@4ax.com> <4dkea.75440$gi1.38045@nwrdny02.gnilink.net> NNTP-Posting-Host: avelizy-103-1-1-92.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news-reader10.wanadoo.fr 1048267000 28038 217.128.141.92 (21 Mar 2003 17:16:40 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 21 Mar 2003 17:16:40 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95 Xref: archiver1.google.com comp.lang.ada:35607 Date: 2003-03-21T17:16:40+00:00 List-Id: Dmitry A. Kazakov writes: > A private implementation of an array type. If the language have had > full ADT there would be no need predefined Unbounded_String. Or > consider the following: > > type Sparse_Matrix is > private array (Integer range <>; Integer <>) of Element; > > It has an array interface, but internally it is also a record type > using a list to keep the array elements. But how do you access element into this array, what would be done for: M : Sparse_Matix (1 .. 7, 1 .. 90); M (2, 6) := ...; Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595