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 273FBBB83 for ; Thu, 25 May 2006 06:33:01 +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 k4P4X0BE013106 for ; Thu, 25 May 2006 06:33:00 +0200 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 GAA02683 for ; Thu, 25 May 2006 06:32:59 +0200 (MET DST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4P4WwCL026779 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 25 May 2006 06:32:59 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fj7Wm-00050u-9c for caml-list@inria.fr; Thu, 25 May 2006 06:32:52 +0200 Received: from 70.55.144.35 ([70.55.144.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 May 2006 06:32:52 +0200 Received: from monnier by 70.55.144.35 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 May 2006 06:32:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Stefan Monnier Subject: Re: immutable strings (Re: Array 4 MB size limit) Date: Thu, 25 May 2006 00:32:44 -0400 Message-ID: References: <20060515141230.ajyupn2z28k0484s@horde.akalin.cx> <446D5E4A.8060005@akalin.cx> <20060519162844.GA32550@osiris.uid0.sk> <200605192226.34917.jon@ffconsultancy.com> <20060520211117.GA2670@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 70.55.144.35 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:M13HwjRapBfBSvzm7fZjXtVSzxU= Sender: news X-Miltered: at concorde with ID 4475337C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4475337A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; umontreal:01 mutable:01 mutable:01 byte:01 arrays:01 imho:01 immutable:01 immutable:01 strings:01 strings:01 size:95 programmer:06 think:11 possibly:12 kind:12 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=RCVD_BY_IP,RCVD_NUMERIC_HELO autolearn=disabled version=3.0.3 > IMHO strings should be possibly made immutable by using the "immutable" > keyword, which is the opposite of the "mutable" keyword as it is used for > records. So the user/programmer can chose the kind of strings he7she wants. I think it's OK to have (mutable) byte arrays, but strings should simply always be immutable. Stefan