From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA25971; Thu, 30 Jan 2003 14:59:15 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA25335 for ; Thu, 30 Jan 2003 14:59:14 +0100 (MET) Received: from inria.fr (macaque.inria.fr [128.93.8.158]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0UDxDr00590 for ; Thu, 30 Jan 2003 14:59:13 +0100 (MET) Date: Thu, 30 Jan 2003 14:59:34 +0100 Subject: Re: [Caml-list] question: "autoconfiguration" of Ocaml code (checking for libraries) Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Damien Doligez To: caml-list@inria.fr Content-Transfer-Encoding: 7bit In-Reply-To: <20030129225438.67089ae8.maxence.guesdon@inria.fr> Message-Id: <102CCCB2-345B-11D7-A642-0003930FCE12@inria.fr> X-Mailer: Apple Mail (2.551) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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