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: Brian Hurt <bhurt@s...>
Subject: Re: [Caml-list] Long constant strings?
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