Consider the next code in a gui environment. # let b = Sys.command("ncpmount /mnt/novell js");; Could not find mount point /tmp/js: No such file or directory ...
Hello, I'm writing program that will show and compare few sorting algorithms in graphical mode. I want to show every step of all of the algorithms. That means...
people.. I have 2 programs sharing some data...how do i do that.. please look at the code below and help me... Animesh (*prog1.ml .. will be compiled after...
hello people, I seem to have a very strange problem, I have a client server code (2 separate programs) which transmit data using Marshal.to_channel and...
Hi, I am amit, i am a grad student of UIUC.I have to do a project in ocaml for one grade point. The project should be on the grounds of adding a small feature...
I have a problem with type names in functor applications. Here's an example: -- apple.mli -- type apple = Apple -- baker.mli -- module type FRUIT = sig type...
Hello! I'm writing an interpreter of query on xml files from an high level query language to an implementation of XQuery (galax, written in ocaml). I need to...
Hello, in the ocaml-toplevel of Ocaml-distribution 3.04 there is no possibility of using streams with [< >]-notation. The Stream-module is available, but not...
Hello, I want to translate the following c++ data structure into ocaml: struct node { node* left; node* righ; }; The closest thing in ocaml that I've tried is...
hello there, This regarding the 'Marshal39;ing I am trying to do. could you please send me a sample code (just a few lines..) which can compile and show the use...
I am slowly poking my way through the creation of a filename module. I've got this in fname.mli ... type directory type file type absolute type relative type...
hello people, I am new to ocaml.. when i tried this code.. it compiled perfectly fine but when i ran it.. it gave me *no* output at all!! it just ended... can...
I've been trying to subscribe to the main ocaml list and have been getting nothing from them after several weeks of trying. What's going on there? Have they...
Hello to everybody I'm wondering whether in Ocaml one can roll up a string:string and then use a command that takes that string as a command, something like:...
As my first "real" OCaml module, I want to produce a filename module that will type the different kinds of filename components and only allow me to combine...
Hi, I wanted to test Caml's laziness in parameter evaluation... I explain what kind of laziness I am speaking about. (Generally, not Caml-specifically.) I have...
Hello, I heard about OpenGL-Libraries for Ocaml. I planned to use them later, but first I want to explore the capabilities of the Graphics-Module. Are there...
Sorry, me again ;-) after playing around some more time with OCaml, I'm wondering how to read from a file in a "good" manner with OCaml. Mostly when reading a...
... Actualy I would prefer the "ignore" function : let skryflys l lys = ignore (List.map (...) lys); close_out l;; Which is "almost" the same as "let _ = "...
... # let skryflys l lys = List.map (Printf.fprintf l "%s\n") lys; close_out l;; Toplevel input: # let skryflys l lys = List.map (Printf.fprintf l "%s\n") lys;...
Hello, I want to play with ocamldap, but compiling the latest version (0.3) trigger a syntax error on a simple parser: philou@philou:~/src/ocamldap-0.3$ make ...
oops, forgot to mention my setup: current debian sid, with the following caml packages: philou@philou:~$ dpkg -l | grep -i caml ii camlimages 2.00-1...
Hello, I got a problem, that only occurs in compilation and not in the toplevel (but the toplevel prints warnings about the type (should be unit)). Here is the...
Hello to everybody I've been studying the beautiful example of XML-oriented parsing written by Nicolas Cannasse and called XML Light. ... Code ... 1) Check out...
I'm working through some of the exercises available in the O'Reily book that is available online at <http://caml.inria.fr/oreily-book/>. Here is what I came up...
Hi All, I have a type type testTyp = First | Second | Third | Umpteenth Is there a library function with the following behavior? f (First) = Second f (Second)...
... You can trick by doing ( only if your constructors does not have any parameters ) : let f x = (Obj.magic ((Obj.magic x : int) + 1) : 'a) but that won't...
I tried the profiling example in the new Ocaml book, p.281ff. But I am not getting any information that seems worthwhile. I hope someone can help me... $ cat...
A couple of questions about classes: (1) What is the difference between a class with all virtual methods and a class type? Are they interchangeable? (2) Also,...