Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlbuild
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] ocamlbuild
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