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 VAA32065; Tue, 18 Jun 2002 21:05:20 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA31748 for caml-list@pauillac.inria.fr; Tue, 18 Jun 2002 21:05:20 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA17645 for ; Tue, 18 Jun 2002 11:56:44 +0200 (MET DST) Received: from isis.u-strasbg.fr (ns1.u-strasbg.fr [130.79.200.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g5I9uhb19278 for ; Tue, 18 Jun 2002 11:56:44 +0200 (MET DST) Received: from dpt-info.u-strasbg.fr (dpt-info.u-strasbg.fr [130.79.44.193]) by isis.u-strasbg.fr (8.12.3/jtpda-5.4) with ESMTP id g5I9uhpU040518 ; Tue, 18 Jun 2002 11:56:43 +0200 (CEST) Received: from lambda.u-strasbg.fr (lambda.u-strasbg.fr [130.79.90.63]) by dpt-info.u-strasbg.fr (8.9.3/8.9.3) with ESMTP id LAA06065; Tue, 18 Jun 2002 11:58:00 +0200 Received: from luther by lambda.u-strasbg.fr with local (Exim 3.35 #1 (Debian)) id 17KFrn-0006Hm-00; Tue, 18 Jun 2002 12:05:39 +0200 Date: Tue, 18 Jun 2002 12:05:38 +0200 To: Basile STARYNKEVITCH Cc: caml-list@inria.fr Subject: Re: [Caml-list] version of Ocaml... Message-ID: <20020618100538.GA24149@lambda.u-strasbg.fr> References: <15630.64701.7112.1200@is002254.saclay.cea.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15630.64701.7112.1200@is002254.saclay.cea.fr> User-Agent: Mutt/1.4i From: Sven Luther Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Jun 18, 2002 at 11:26:21AM +0200, Basile STARYNKEVITCH wrote: > Dear All Ocamlers, > > Is there a programmatic way to get the used version of Ocaml? I am > missing a > > val version: string > > in stdlib/sys.mli you can use : val version: string (* The current version number of the system *) from utils/config.mli, which contain various other usefull stuff. You would need to link in the utils/config.ml file yourself though, and it is not standardly installed when ocaml is built, so you would need to install it yourself by hand, if i am not mistaken. Friendly, Sven Luther ------------------- 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