Re: [Caml-list] stupid q: camlp4

2008-11-09 Thread Richard Jones
On Sat, Nov 08, 2008 at 11:00:44PM +0300, Anastasia Gornostaeva wrote: How can I learn modern Camlp4? With difficulty. That's sad because it's very powerful. I would suggest starting with Martin's Jambon's tutorial. Even though it refers to the old camlp4 / camlp5, it's still useful to

Re: [Caml-list] Optional arguments

2008-11-09 Thread David Teller
What were you expecting? Your definition of [a] always passes argument [i] to [b], so the default value is never used. Cheers, David On Sun, 2008-11-09 at 22:17 +0300, malc wrote: Objective Caml version 3.10.0 # let a i = let b ?(i=i mod 3) () = i in b ~i ();; val a : int - int = fun #

[Caml-list] Translating the unix course

2008-11-09 Thread Daniel Bünzli
By the way each time I need to use the unix module my failing knowledge of system programming is relieved by the unix course of Leroy and Remy. This is such a good documentation of ocaml's unix module it's a shame it isn't available in the lingua franca of programmers. Apparently there

Re: [Caml-list] Translating the unix course

2008-11-09 Thread Oliver Bandel
Hello, Zitat von Daniel Bünzli [EMAIL PROTECTED]: By the way each time I need to use the unix module my failing knowledge of system programming [...] Best ressource on Unix-Programming: APUE http://www.kohala.com/start/apue.html Ciao, Oliver

[Caml-list] Optional arguments

2008-11-09 Thread malc
Objective Caml version 3.10.0 # let a i = let b ?(i=i mod 3) () = i in b ~i ();; val a : int - int = fun # for i = 0 to 5 do print_int (a i); done;; 012345- : unit = () Is this something to be expected? Or perhaps something which calls for an upgrade? -- mailto:[EMAIL PROTECTED]

[Caml-list] Sleeping and waking up a thread (was Re: Sending a signal to a thread)

2008-11-09 Thread Daniel Bünzli
Le 9 nov. 08 à 16:00, Daniel Bünzli a écrit : Is there a way to send a signal to a thread from another thread (i.e. something like pthread_kill) ? Sorry to respond to myself. This is not the answer to the question (which I believe is no) but it does solve my problem. The actual problem

Re: [Caml-list] [ANN] OCaml-Java project: 1.1 release

2008-11-09 Thread Warren Harris
Interesting project. Looks like you're mostly focused on getting ocaml code to run in a jvm. Have you given any consideration to making things work the other way around? I've found the ocaml runtime to be far superior, and it would be nice to be able to recompile a java library (source or