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 BAA32284; Wed, 10 Dec 2003 01:11:31 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA30773 for ; Wed, 10 Dec 2003 01:11:30 +0100 (MET) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hBA0BTr00856 for ; Wed, 10 Dec 2003 01:11:29 +0100 (MET) Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id hBA0BCC01314; Tue, 9 Dec 2003 18:11:15 -0600 (CST) Date: Tue, 9 Dec 2003 19:12:00 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: David Brown cc: Ocaml Mailing List Subject: Re: [Caml-list] Long constant strings? In-Reply-To: <20031209235748.GA16119@davidb.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 0600,:01 stupid:01 compiler:01 compile:02 dave:03 wrote:03 wrote:03 redirect:95 let:04 strings:06 strings:06 brian:06 brian:06 source:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 9 Dec 2003, David Brown wrote: > 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 > Thank you! That's *exactly* what I want. My stupid. -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- 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