Hello, Is there a way to enable automatic and smart completion in the toplevel? Like writing few beginning letters of an identifier then pressing tab to...
12403
Francois Berenger
f_berenger
Feb 8, 2011 8:51 am
Hello, Are there some examples out there? I'd like to use extString instead of the default ocaml string. Regards, F....
12404
Francois Berenger
f_berenger
Feb 8, 2011 9:42 am
Hello, Is there a search engine supporting search by signature type? Let's say for the ocaml-batteries-included library? For example, let's say I want to know...
12405
Virgile Prevosto
virgilepr
Feb 8, 2011 10:11 am
Hello, ... ocamlbrowser, which is included in the ocaml distribution itself (provided you've enabled labltk) can do such search. See ...
12406
Ashish Agarwal
ashish_a1975
Feb 8, 2011 5:43 pm
... open ExtString ;; print_endline (String.init 5 (fun _ -> 'a')) ... $ ocamlc -I <path_to_extlib_dir> extLib.cma a.ml $ ./a.out aaaaa But you should use...
12407
Francois Berenger
f_berenger
Feb 9, 2011 1:14 am
Hi, Thanks a lot for all the answers, that helps a lot. I am using batteries and GODI now. Regards, F....
12408
Francois Berenger
f_berenger
Feb 9, 2011 4:26 am
I almost got a hurt attack once I realized this....
12409
Francois Berenger
f_berenger
Feb 9, 2011 4:47 am
Hello, How can I do this in Ocaml? With my thin Haskell memories, one would write: filter (not . some_predicate) some_list '.' being the function composition...
12410
Hugo Ferreira
hugotwo3
Feb 9, 2011 8:06 am
... You have in the List module: filter : ('a -> bool) -> 'a list -> 'a list Example in the top level: Objective Caml version 3.11.2 # List.filter (fun x -> x...
12411
Philippe Veber
philippeveber
Feb 9, 2011 9:05 am
Function composition (as well as argument flipping) are available in batteries : http://thelema.github.com/batteries-included/hdoc/BatStd.html Except for some...
12412
Michael Ekstrand
michael@...
Feb 9, 2011 3:04 pm
... Batteries Included, a community project aimed at providing an enhanced, consistent base library for projects to assume, does provide this function. The...
12413
Geoffroy
c.geoffroy@...
Feb 9, 2011 10:33 pm
Hello I need to generate some stub, for a C library filled with callback. Swig seems to not handle them, so i took a look at camlidl. But i must said that i...
12414
Jean Saint-Remy
jeansaintremy
Feb 13, 2011 3:33 am
How Y'all are, I've been trying to find an elegant way to prompt and capture user input inside an OCaml script, but that did not go so well. I want the user to...
12415
Marco
roparzhhemon
Feb 13, 2011 4:55 am
Hello all, I have an ocamlopt-created executable that basically makes a computation for every integer k. Each time computation number $k$ is finished, the...
12416
ygrek
ygrekheretix
Feb 13, 2011 10:20 am
On Sun, 13 Feb 2011 04:55:29 -0000 ... You need atomic overwrite operation. This is orthogonal to programming language used. For POSIX filesystems this is...
12417
Arlen Cuss
celtic@...
Feb 13, 2011 12:00 pm
Hi there! I think one issue here is that you're not actually having functions ... This will be executed as soon as it's interpreted; prompt will literally ...
12418
Thaddeus Meyer
ThadMeyer
Feb 13, 2011 12:24 pm
Hi, Could one also catch the ^C signal with an interrupt handler? Maybe something like this, performing your file write operations as you're exiting the...
12419
Marco
roparzhhemon
Feb 13, 2011 1:54 pm
Thanks for the sample code. When I try to install the ExtUnix package I get the following error message : ...
12420
Sylvain Le Gall
gildor16478
Feb 13, 2011 1:58 pm
... Can you give us your version of OCaml ? (ocamlc -v) Regards Sylvain Le Gall...
12421
Marco
roparzhhemon
Feb 13, 2011 2:02 pm
... Certainly I can : urzhiataer-ewan:~/Documents/Caml/Ordinary ewan$ ocamlc -v The Objective Caml compiler, version 3.09.3 Standard library directory:...
12422
Sylvain Le Gall
gildor16478
Feb 13, 2011 2:18 pm
Hello, ... I would have bet for a 3.09 version ;-) Sys.is_directory has been introduced in OCaml 3.10. You use a quite old version of OCaml (5 years). Have you...
12423
Marco
roparzhhemon
Feb 13, 2011 5:39 pm
I updated to OCaml 3.12.0, but ExtUnix still won't install : urzhiataer-ewan:/usr/local/lib/ocaml/ocaml-extunix-0.0.2 ewan$ ocamlc -v The Objective Caml...
12424
ygrek
ygrekheretix
Feb 13, 2011 6:27 pm
On Sun, 13 Feb 2011 17:39:29 -0000 ... You also need ocamlfind and oUnit installed... -- ygrek http://ygrek.org.ua...
12425
Sergei Steshenko
sergstesh
Feb 13, 2011 11:44 pm
Hello, building OCaml from sources I've noticed '-nostdlib39; is used in command lines like this: ../boot/ocamlrun ../boot/ocamlc -strict-sequence -g -warn-error...
12426
nick@...
Feb 13, 2011 11:50 pm
Hi, ... In this case '-nostdlib39; is to ocamlc. -- Mykola Stryebkov Public key: http://mykola.org/pubkey.txt fpr: 0226 54EE C1FF 8636 36EF 2AC9 BCE9 CFC7 9CF4...
12427
Sergei Steshenko
sergstesh
Feb 14, 2011 12:21 am
Hello, as I wrote in an earlier message, I've been successfully building OCaml from sources - with practically everything else self-built, including 'gcc' and...
... This is used for ocaml to not use an already compiled stdlib when compiling the stdlib. In your example, ocaml is compiling the pervasives module, the one...
12429
Marco
roparzhhemon
Feb 14, 2011 7:15 am
... I installed ocamlfind without problems, but I have trouble installing oUnit : urzhiataer-ewan:~/Documents/Caml/ounit-1.1.0 ewan$ ocaml setup.ml -build I:...
12430
Sylvain Le Gall
gildor16478
Feb 14, 2011 10:38 am
... Can you check the existence of pervasives.cmi in the mentioned directory? Can you also check that it is the version coming with ocaml 3.12.0? Cheers ...
12431
Marco
roparzhhemon
Feb 14, 2011 10:48 am
... Certainly I can : urzhiataer-ewan:/usr/local/lib/ocaml ewan$ file pervasives.cmi pervasives.cmi: Objective caml interface file (.cmi) (Version 012). So the...