Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
On Wednesday, January 29, 2003, at 10:54 PM, Maxence Guesdon wrote:

>  let version = Sys.ocaml_version in
>  if float_of_string version < 3.06 then

Don't do that.  Sys.ocaml_version is not a floating-point number.
If it was, it would have type float instead of string.

This is much less likely to fail:

    if version < "3.06" then ...

-- Damien

-------------------
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