... So what ? If you want to print a value of type Num.num, you can use Num.string_of_num. You can also install a custom printer for values of this type in...
384
lawyer6662001
Jun 22, 2002 6:25 pm
Thanks, string_of_num works. But I have another problem, when I enter this program: let num_digits_of_num x = num_digits_big_int (big_int_of_num x);; ocaml...
385
lawyer6662001
Jun 22, 2002 6:28 pm
Sorry i've just write open big_int;; and it works! Thank you everybody!...
386
Animesh Pathak
animesh.pathak@...
Jun 24, 2002 7:05 am
i dunno abt milliseconds, but if it is seconds you are after... try Unix.sleep <num_of_secs> for milliseconds.. try measuring the time with Unix.gettimeofday...
387
Gerd Stolpmann
info@...
Jun 24, 2002 8:23 pm
... ignore(Unix.select [] [] [] <num_of_secs>) but <num_of_secs> is a float with a theoretical accuracy of microseconds. Gerd -- ... Gerd Stolpmann...
388
YAMAGATA yoriyuki
yoriyuki@...
Jun 26, 2002 6:11 pm
From: YAMAGATA yoriyuki <yoriyuki@...> Subject: Re: "ocaml_beginners"::[] Re: big numbers Date: Sun, 23 Jun 2002 02:05:42 +0900 ... #load...
389
bwv211mail
Jul 2, 2002 9:48 pm
Hi. Do the ocaml tools do something special with respect to the standard libraries? I'm wondering why we don't have to specify them on the command line. I...
390
YAMAGATA yoriyuki
yoriyuki@...
Jul 3, 2002 12:00 pm
From: "bwv211mail" <bwv211mail@...> Subject: "ocaml_beginners"::[] ocaml libraries and using your own Date: Tue, 02 Jul 2002 21:48:55 -0000 ... As far as...
391
Steven Shaw
steshaw
Jul 4, 2002 12:32 pm
... From: "Steven Shaw" <steven_shaw@...> To: <ocaml_beginners@yahoogroups.com> Sent: Thursday, July 04, 2002 10:10 PM Subject: overflow...
392
Steven Shaw
steshaw
Jul 4, 2002 12:32 pm
... From: "Steven Shaw" <steven_shaw@...> To: <ocaml_beginners@yahoogroups.com> Sent: Thursday, July 04, 2002 10:17 PM Subject: fun v function ... ...
393
Martin Jambon
m.jambon@...
Jul 4, 2002 12:51 pm
... function can be used for pattern matching one one argument, and can be used as a shortcut for match ... with : let print_bool b = match b with true ->...
Thanks. ... From: YAMAGATA yoriyuki To: ocaml_beginners@yahoogroups.com Sent: Thursday, July 04, 2002 11:49 PM Subject: Re: "ocaml_beginners"::[] Fw: overflow ...
396
Johann Spies
jspies@...
Jul 9, 2002 10:59 am
... # let outputstring = ref "";; val outputstring : string ref = {contents = ""} # let wys_uitvoer si se= outputstring:=""; try while true do let line =...
397
Nicolas Cannasse
ncannasse
Jul 9, 2002 11:20 am
... Unix.close_process_full takes some parameters !! ... so here ff is returning the function Unix.close_process_full Nicolas Cannasse...
398
Johann Spies
jspies@...
Jul 9, 2002 12:01 pm
... Thanks. I must get used to the ocaml way of documentation! Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie,...
399
Remi VANICAT
dl_ens
Jul 9, 2002 12:38 pm
... First, all function take a parameter. All. Second, the documentation say : val close_process_full : Pervasives.in_channel * Pervasives.out_channel *...
400
Johann Spies
jspies@...
Jul 17, 2002 1:28 pm
I want to use a C-library in Ocaml and trying to figure out how to do it, I used the following code from the Ocaml-book: The C-code (toets.c) ... #include...
401
Johann Spies
jspies@...
Jul 17, 2002 2:41 pm
I have made some progress, but get strange results: The following combination ... external caml_hello_world : int -> int -> int = "hello_world";; let som =...
402
Nicolas Cannasse
ncannasse
Jul 17, 2002 3:16 pm
... Integer are coded into OCaml values by putting the first bit to 1 Then if a value is odd then the remaining 31 bits are an integer, else it's a pointer on...
403
Dmitry Bely
dbely@...
Jul 20, 2002 6:25 am
... Sure. You are using OcamlMakefile the wrong way. Replace SOURCES=camlndspasswd.ml toets.o with SOURCES=camlndspasswd.ml toets.c Don't forget also that...
404
Steven Shaw
steshaw
Jul 21, 2002 3:23 am
I'm just learning ocaml via the orielly book. In doing the excercises for chapter 2 I found that I was running into afew runtime exceptions. 'Exception:...
405
Steven Shaw
steshaw
Jul 21, 2002 3:50 am
I'm after a function that can split a list into 3 items according to a predicate: a list of items before, found item, list of items after. Or a clue on how to...
406
Remi VANICAT
dl_ens
Jul 21, 2002 10:26 am
... yes. just set the environment variable OCAMLRUNPARAM to b as in : moi@debian:~/lang/ocaml$ export OCAMLRUNPARAM=b moi@debian:~/lang/ocaml$ ocamlc -g...
407
Steven Shaw
steshaw
Jul 21, 2002 4:39 pm
From: "Remi VANICAT" <vanicat+egroups@...> ... for ... with ... It's not quite line numbers but it works great. It will really come in handy. ...
408
Frederic van der Plan...
fplancke2001
Jul 21, 2002 11:10 pm
... The library functions often fail with 'Failure "name_of_function"'; in this case, it's probably List.hd which receives an empty list. ... Don't forget to...
409
Remi VANICAT
dl_ens
Jul 22, 2002 1:33 am
... Yes, each call to List.hd/List.tl check to see if the list is not empty. And it's a fun call. -- Rémi Vanicat vanicat@... ...
410
Johann Spies
jspies@...
Jul 22, 2002 7:11 am
... Thanks. I will try out camlidl. Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Then...
411
Yaron M. Minsky
yminsky
Jul 22, 2002 12:56 pm
Here's a simple implementation of split: let rec split list test = match list with [] -> raise Not_found ... else let (before,x,after) = split tl test in ...
412
Stephane Legrand
stephane_leg...
Jul 27, 2002 6:54 pm
Hello, The following program (see below), which indefinitely adds records in a DB file, fails every time with this error : Fatal error: exception...