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
About the O'Reilly book on the web
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-11-25 (18:37)
From: Francois Colonna <colonna@c...>
Subject: About the O'Reilly book on the web

in the version of the O'Reilly book on the web

Chapter 11 about Str Library page 293

the followin example of a regular expression is given :

*let*| |english_date_format| ||=|| |Str.regexp| ||"[0-9]+\.[0-9]+\.[0-9]+"|| |;;

1 - if you are aware of how to compile a Library and try to compile 
this line you will get a Warning :

Warning X: illegal backslash escape in string.

Is that a typing error ? Who is in charge of this kind of corrections ?

2 - if you are not aware of how to compile a Library it will be impossible 
to make this line of code be compiled and linked.

It will be nice to warn the reader about this trouble (for example with a special icon) 
and to give him the possibility to find (quickly) a description of the rather 
difficult compilation procedure to be used in this case


François Colonna