Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: