Version française
Home     About     Download     Resources     Contact us    
Browse thread
Concatenation of static strings?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Concatenation of static strings?
Hi all,

I find myself doing things like the following:

    let print_usage () =
        print_endline
	(	"\n" ^
		"Usage : progname [options]\n" ^
		"        progname [options] <config file>\n"
		)

and wondering, when those strings are concatenated. Is that done
at compile time?

Cheers,
Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
The difference between a violin and a viola is that a viola
burns longer.