Dear Thaddeus, ... I use "ocamlbrowser" to do this. Regards Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van...
Johann Spies
jspies@...
Feb 8, 2005 1:31 pm
2935
I wonder how can I load a Big_Int module in ML? I tried open, use, and none of them worked. I need to handle some arbitrarily huge numbers. Thanks a lot!...
... Hi, Big_int is contained in the Num library. Documentation for the Num library is here: http://caml.inria.fr/ocaml/htmlman/manual036.html On this page it...
... You need to load the nums library first. From the OCaml manual, chapter 22 (The num library): Programs that use the num library must be linked as follows:...
I tried this to write some string on a file, seems very straightforward, but it just doesn't write! let oFile="~/out.txt";; let oc = open_out oFile;; output...
... There's quite a few problems here: 1: I don't believe OCaml will do shell expansion of ~ when part of a filename. I know it doesn't do it on OS X. 2: the...
... Please give the command you use. Did you try "ocaml file.ml" ? If so you need to tell it where to find the implementation of "Dumper" (it depends on...
Christophe TROESTLER
Christophe.Troestler@...
Feb 10, 2005 4:51 pm
2942
... You need to compile dumper.mli and dumper.ml first (there should be dumper.cmi and dumper.cmo files as a result). For example: ocamlc -c dumper.mli ocamlc...
... I have this function in my own personal mini-library, and it works fine: let output_file filename data = let chan = open_out_bin filename in output_string...
... I got this working based one the examples. Thank you guys! __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced...
Hi all, I have a question: if I want to leave the implementation of a type in a module (btw in a mli/ml pair) accessible, should I duplicate its code as in ...
Vincenzo Ciancia
vincenzo_yahoo_addres...
Feb 10, 2005 7:22 pm
2946
... That's exactly the reason why extlib exists - to provide useful functions to the community which are not part of the standard library. Rich. -- Richard...
Hi all!! I wrote a program and would like to switch modules depending on the input. In short I am looking for something like that: myfunction module_a x = let...
... You can define your (complex) type definition in a specific .ml file without a corresponding .mli: (* the_type.ml *) type t = ... (* modul.mli *) type t =...
... See this thread: http://caml.inria.fr/archives/200408/msg00075.html Martin -- Martin Jambon, PhD Researcher in Structural Bioinformatics since the 20th...
... <in humor> Well, Rich, since you're such the Perl guy, maybe port Perl's trick for the same thing over :) From man perlfaq5 </in humor> From another Perl...
Hi, I'm using Marshal to turn a tree structure into an integer, I wonder how to explicitly define that structure? For example, if I use this: let s =...
... You need to explain in more detail what you are trying to accomplish, and perhaps show more of your code. In particular, you should explain what the...
... [...] Thanks. I know I can write it. I was just wondering if there was a way to avoid writing it, eg. by setting the locale to en_GB or something....
... I guess you can use that if you want: let print_comma_int i = if i < 1000 then print_int i else (print_comma_int (i / 1000); Printf.printf ",%03i" (i mod...
Hello folks, I'm profiling an ocaml program compiled with ocamlopt -p on linux/x86, and I'm having trouble reading the gprof output. In particular, is there a...
Hello, I am new to the list and am just starting to learn Ocaml by going through the book "The Functional Approach to Programming." On page 54, at the bottom...
... Just to expand on that a bit, all of the greek letters that they use in the book are represented in OCaml by a single quote followed by a regular variable...
... Thank you for that recommendation. I was starting to look at the oreilly book, http://caml.inria.fr/oreilly-book/ but Jason Hickey's introduction is a lot...
Now I am going through Jason Hickey's Introduction to Ocaml, and have encountered an anomaly in section 2.1.5 string: character strings. This example given in...
... Well, it is a problem with your port of ocaml, There is no problem with ocaml 3.08.2 on linux. It is still a bug, and you should report it for the ocaml...