caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries)
Date: Thu, 30 Jan 2003 14:59:34 +0100	[thread overview]
Message-ID: <102CCCB2-345B-11D7-A642-0003930FCE12@inria.fr> (raw)
In-Reply-To: <20030129225438.67089ae8.maxence.guesdon@inria.fr>

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


  parent reply	other threads:[~2003-01-30 13:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 19:58 Basile STARYNKEVITCH
2003-01-29 20:04 ` Will Benton
2003-01-29 20:15   ` Basile STARYNKEVITCH
2003-01-29 20:22     ` Will Benton
2003-01-29 21:54     ` Maxence Guesdon
2003-01-30 10:45       ` Jean-Christophe Filliatre
2003-01-30 13:59       ` Damien Doligez [this message]
2003-01-29 21:43 ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=102CCCB2-345B-11D7-A642-0003930FCE12@inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).