English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2004-03-10 (15:04)
From: oliver@f...
Subject: [Caml-list] Ocaml 3.07+2: "Illegal backslash escape in string"

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

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


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