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