Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml 3.07+2: "Illegal backslash escape in string"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: oliver@f...
Subject: [Caml-list] Ocaml 3.07+2: "Illegal backslash escape in string"
Hello,


after recompiling code that has run under Ocaml 3.04 (??)
without warnings, using Str-module, I now got those messages,
as you can see in the Subject-Line.

That's, when I use something like

   Str.regexp = "a\|b"

instead of

   Str.regexp = "a\\|b"


Why should I use a double-backslashed sequence?
When looking into the manual, the first way is
correct.

Will this be fixed, or will this double-backslashed sequence
the new way how to use Str-regexp-Definitions?!


Ciao,
   Oliver

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners