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: David Allsopp <dra-news@m...>
Subject: RE: [Caml-list] ocamlbuild
> 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 = "\""

What you're seeing here is the pretty-printer in the toploop which passes
string values through String.escaped:

	# let a = "\"";;
	val a : string = "\""
	# String.length a;;
	- : int = 1
	# Printf.printf "%s\n" a;;
	"
	- : unit = ()

I had the same problem with findlib compiling under the MinGW port and had
to remove Filename.quote in the same way...


David