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.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5BFA3BC69 for ; Mon, 6 Aug 2007 18:20:23 +0200 (CEST) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l76GKMLU027662 for ; Mon, 6 Aug 2007 18:20:23 +0200 Received: from poincare.swapping.umh.ac.be (pri-010.umh.ac.be [10.101.0.10]) by hedwig1.umh.ac.be (8.13.6/8.13.6) with ESMTP id l76GPG8S1597518; Mon, 6 Aug 2007 18:25:16 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.67) (envelope-from ) id 1II5IV-0006ZS-1e; Mon, 06 Aug 2007 18:19:11 +0200 Date: Mon, 06 Aug 2007 18:19:07 +0200 (CEST) Message-Id: <20070806.181907.116754013.Christophe.Troestler+ocaml@umh.ac.be> To: camaradetux@gmail.com Cc: skaller@users.sourceforge.net, caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocamlbuild From: Christophe TROESTLER In-Reply-To: <666572260708060234q22951768uadb275d4bc498ad8@mail.gmail.com> References: <1186355977.6523.55.camel@rosella.wigram> <666572260708060036k26f20557j6167e94bca3e5dc@mail.gmail.com> <666572260708060234q22951768uadb275d4bc498ad8@mail.gmail.com> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons-Hainaut X-Mailer: Mew version 5.2.50 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at concorde with ID 46B74A46.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0200,:01 val:01 val:01 034:98 char:01 wrote:01 caml-list:01 umh:01 behaviour:01 quoting:02 On Mon, 6 Aug 2007 11:34:01 +0200, Adrien wrote: > > I was debugguing a regular-expression and noticed that \" in a string > remained as-is and this somehow seems linked to my quotation problem : > # let a="\"";; > val a : string = "\"" > > # let a="\034";; > val a : string = "\"" > > Is it expected behaviour? :o Yes. Your misunderstanding seems to come from the fact that it is displayed as \" because it is quoted, this the usual quoting rules apply. But # "\"".[0];; - : char = '"' ChriS