From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA27381; Sat, 10 May 2003 22:25:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA27132 for ; Sat, 10 May 2003 22:25:32 +0200 (MET DST) Received: from eposta.kablonet.com.tr ([62.248.102.66]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h4AKPTT12568 for ; Sat, 10 May 2003 22:25:30 +0200 (MET DST) Received: (qmail 74642 invoked by uid 0); 10 May 2003 20:27:00 -0000 Received: from unknown (HELO 195.174.169.185) (exa@kablonet.com.tr@195.174.169.185) by 0 with SMTP; 10 May 2003 20:27:00 -0000 From: Eray Ozkural Reply-To: erayo@cs.bilkent.edu.tr Organization: Bilkent University CS Dept. To: Oleg , caml-list@inria.fr Subject: Re: [Caml-list] Array.resize ? Date: Sat, 10 May 2003 23:24:29 +0300 User-Agent: KMail/1.5.9 References: <200210180605.57751.erayo@cs.bilkent.edu.tr> <200210190150.VAA15530@apakabar.cc.columbia.edu> In-Reply-To: <200210190150.VAA15530@apakabar.cc.columbia.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200305102324.29495.exa@kablonet.com.tr> X-Spam: no; 0.00; eray:01 ozkural:01 caml-list:01 resize:01 oleg:01 chunks:01 implemented:01 extensible:01 iterator:01 abstraction:01 dynarray:01 algol:01 erayo:01 bilkent:01 ankara:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Saturday 19 October 2002 04:51, Oleg wrote: > This is exactly what I meant when I wrote "memory is reserved in chunks > automatically ... " above. > > (BTW might I suggest you save the condescending tone for somewhere else?) > I may have wanted to say an array is not something you append to, but a "vector" in C++ terminology is.... Sorry for the inappropriate manner. In fact, the data structure library should be careful enough to distinguish list ADT implemented with extensible arrays from list ADT implemented with linked lists. I was thinking about this the other day. That distinction is probably one of the few things that C++ standard library has implemented quite well. (I personally don't like the "iterator" abstraction at all) Also, a dynamic array which you can resize would be worthwhile. Any name suggestions for such a module? I used Dynarray for the small code I posted on the list but somebody else may have a better one (like "flex" in algol) I always end up using strange names. Best Regards, -- Eray Ozkural (exa) Comp. Sci. Dept., Bilkent University, Ankara KDE Project: http://www.kde.org www: http://www.cs.bilkent.edu.tr/~erayo Malfunction: http://mp3.com/ariza GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners