Version française
Home     About     Download     Resources     Contact us    
Browse thread
Worsening standard library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: sejourne_kevin <sejourne_kevin@y...>
Subject: Re: [Caml-list] Worsening standard library
Serge a écrit :
> Gentlemen!
> 
> I think this might be kinda offtopic, but nevertheless. OCaml is being
> extensively employed for educational purposes, and it looks like it is
> still missing an important feature - the one of easy reading numbers
> (integers/floats/doubles) from, say, standard input. You have to read
> lines and parse numbers out of them. For instance, in Pascal it was
> possible to do "read(x)". 
There is some functions for doing that:
Pervasives.read_line
Pervasives.read_int
Pervasives.read_float