From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 4402CBB91 for ; Tue, 26 Jul 2005 09:10:39 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6Q7Acup005859 for ; Tue, 26 Jul 2005 09:10:38 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA32677 for ; Tue, 26 Jul 2005 09:10:38 +0200 (MET DST) Received: from alex.barettalocal.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6Q7AbO1005853 for ; Tue, 26 Jul 2005 09:10:37 +0200 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by alex.barettalocal.com (Postfix) with ESMTP id 1624E2BAB90; Tue, 26 Jul 2005 09:10:33 +0200 (CEST) Message-ID: <42E5E1E5.2040100@barettadeit.com> Date: Tue, 26 Jul 2005 09:10:29 +0200 From: Alex Baretta User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: skaller Cc: caml-list@inria.fr Subject: Re: [Caml-list] How to do this properly with OCaml? References: <42E2393B.5030209@inria.fr> <1122226423.9027.23.camel@localhost.localdomain> <42E51FB1.3010700@tfb.com> <1122319143.6773.38.camel@localhost.localdomain> In-Reply-To: <1122319143.6773.38.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 42E5E1EE.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42E5E1ED.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 ocaml:01 ocaml:01 functor:01 hashtables:01 baretta:01 ...:98 wrote:01 wrote:01 polymorphic:01 imperative:01 int:01 supported:01 implemented:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 skaller wrote: > On Mon, 2005-07-25 at 10:21 -0700, Ken Rose wrote: > >>skaller wrote: >> >>>I would appreciate an officially supported variable >>>length array a lot: it can't be efficiently implemented >>>*without* Obj.magic. >> >>I must be missing something obvious. What's wrong with map? > > > It is not efficient, it is very > clumsy to use because it is an ocaml functor, > and it is not imperative. > > I actually use Hashtables a lot, rather than Maps, > simply because the type variables are instantiated > automatically. There is a beautiful parametrically polymorphic map module, largely based on map.ml, lying around the net somewhere. Let me see if I can find the reference... *** Why, obviously it's int the Extlib! Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project