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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 7A8B5BC58 for ; Tue, 14 Sep 2010 22:48:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoEAEJ8j0xQRFuwXmdsb2JhbAChYwsXFQY0xhiFQAQ X-IronPort-AV: E=Sophos;i="4.56,366,1280700000"; d="scan'208";a="67589139" Received: from furbychan.cocan.org ([80.68.91.176]) by mail1-smtp-roc.national.inria.fr with ESMTP; 14 Sep 2010 22:48:18 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1OvcQL-0000Qj-Je; Tue, 14 Sep 2010 21:48:17 +0100 Date: Tue, 14 Sep 2010 21:48:17 +0100 To: Yoann Padioleau Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: ancient module Message-ID: <20100914204817.GA25213@annexia.org> References: <7366F08F-88A4-40BA-95EE-1E682BEDBEFA@facebook.com> <20100914204624.GA1246@annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100914204624.GA1246@annexia.org> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; 0100,:01 arrays:01 byte:01 byte:01 ocaml:01 equality:01 wrote:01 caml-list:01 string:02 string:02 module:03 guess:04 comparison:05 tue:06 sep:06 On Tue, Sep 14, 2010 at 09:46:24PM +0100, Richard Jones wrote: > I've only used ancient to store simple arrays, and when we needed to > do string equality I remember writing a function which was aware of > the above issue (you can compare them byte for byte just fine, even > from OCaml code). Answering my own question, I guess you can use Map, but write a custom string comparison function. Ought to work but not tested it :-) Rich. -- Richard Jones Red Hat