Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Long constant strings?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Long constant strings?
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