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 AAA31211; Wed, 10 Dec 2003 00:58:04 +0100 (MET) 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 AAA31579 for ; Wed, 10 Dec 2003 00:58:03 +0100 (MET) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB9Nw2102528 for ; Wed, 10 Dec 2003 00:58:02 +0100 (MET) Received: from davidb by mail.davidb.org with local (Exim 3.36 #1 (Debian)) id 1ATrjg-0004Cr-00; Tue, 09 Dec 2003 15:57:48 -0800 Date: Tue, 9 Dec 2003 15:57:48 -0800 From: David Brown To: Brian Hurt Cc: Ocaml Mailing List Subject: Re: [Caml-list] Long constant strings? Message-ID: <20031209235748.GA16119@davidb.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 0600,:01 compiler:01 compile:02 dave:03 wrote:03 let:04 strings:06 strings:06 brian:06 dec:07 idiom:08 davidb:08 09,:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Dec 09, 2003 at 06:35:42PM -0600, Brian Hurt wrote: > Am I missing some nice way of doing this? If not, is there any chance > that a future rev of the compiler will recognize this idiom and > concatenate the strings at compile time? Why not: let text = "\ \001\002\003\004\005\006\007\008\009\010\012\013\014\015\016\ \001\002\003\004\005\006\007\008\009\010\012\013\014\015\016\ ... " Dave ------------------- 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