From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 8A93BBC6C for ; Sat, 19 Jan 2008 04:33:05 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAHv+kEfa1uFinmdsb2JhbACQFQEBAQEBBgQGBwoYnhcE X-IronPort-AV: E=Sophos;i="4.25,219,1199660400"; d="scan'208";a="6928475" Received: from smtp.syd.people.net.au ([218.214.225.98]) by mail1-smtp-roc.national.inria.fr with SMTP; 19 Jan 2008 04:33:04 +0100 Received: (qmail 9665 invoked from network); 19 Jan 2008 03:33:08 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 19 Jan 2008 03:33:08 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id BBFE2AB152 for ; Sat, 19 Jan 2008 14:32:59 +1100 (EST) Date: Sat, 19 Jan 2008 14:32:59 +1100 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Subject: Concatenation of static strings? Message-Id: <20080119143259.46752d11.mle+ocaml@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.5 (GTK+ 2.12.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 endline:01 cheers:01 burns:98 config:01 compile:01 strings:01 strings:01 static:03 let:03 erik:04 erik:04 wondering:09 file:11 mle:13 Hi all, I find myself doing things like the following: let print_usage () = print_endline ( "\n" ^ "Usage : progname [options]\n" ^ " progname [options] \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.