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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fce663eaf40b52f6 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Alexander E. Kopilovich" Newsgroups: comp.lang.ada Subject: Re: Manifesto against Vector Date: Wed, 12 May 2004 00:53:51 +0400 (MSD) Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1084308824 23941 212.85.156.195 (11 May 2004 20:53:44 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 11 May 2004 20:53:44 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: ; from Matthew Heaney at Tue, 11 May 2004 01:29:39 GMT X-Mailer: Mail/@ [v2.44 MSDOS] X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: controlnews3.google.com comp.lang.ada:456 Date: 2004-05-12T00:53:51+04:00 Matthew Heaney wrote: > it's a good thing the vector isn't named "Unbounded_Array", > since it's not an unbounded array. (The vector uses an unbounded array > as a model, in order to describe the semantics of the abstraction, but > of course that doesn't mean the vector is an unbounded array. Apparently the name "Unbounded_Array" implies for you a particular method of implementation; probably you think that the "Array" part of this name hints on that the whole container occupies contiguous chunk of memory (or, perhaps, several chunks, with many elements of the array in each). But this is just your personal association, and I don't think that this association is too widespread. Anyway, the method of implementation of this container doesn't matter much for a user, because if it did matter then the standard container probably should not be used at all - according to general presumption for intended use of the whole Container Library. > In fact, > at least two compiler vendors will not be using an unbounded array as > the representation of their vector implementation.) There aren't too many options for those compiler vendors - I guess that they will use unbounded array of accesses to the objects in container. In Delphi's VCL the container implemented in this way is called List - and there were no complaints among Delphi programmers regarding this name. By the way, the name Flexible_Array (inspired by Algol-68) would be totally neutral regarding an implementation. The essence of the problem at which I pointed, is not that the particular name (Unbounded_Array) was not chosen, but in that the chosen name (Vector) has another predefined meaning in several application domains (which are among few Ada-friendly ones), And that this name will be in the standard. Alexander Kopilovich aek@vib.usr.pu.ru Saint-Petersburg Russia