English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] version of Ocaml...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-06-18 (19:05)
From: Sven Luther <luther@l...>
Subject: Re: [Caml-list] version of Ocaml...
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.


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