Hello Ocaml-Programmers, I'm in complete disorder now. I solved a programming task in the imperative way. Now I wanted to rewrite the program into FP-style. ...
I am having problems when using the labltk library, in particular with the Text.tag_add function. When I run my program I receive an exception message:...
Dear Oliver, in thes sunny days I could come back to Ocaml and reading the latest messages I've appreciated your posting very much. Actually, I've always asked...
Hi! Can somebody show me a very minimal usage of the Stack? I need just the syntax. thx Gergo +-[Kontra, Gergely @ Budapest University of Technology and...
Hi. Can anyone help me get graphics working in OCaml? I'm using OCamlWin, and according to the manual all I have to do is run: #load "graphics.cmo";; but...
Hello everyone Is there a pcre module precompiled for win32 systems ? Or atleast instructions for compilation ? I am trying to do this in my win2000 box. And...
... You should use the 'undocumented39; Obj module. (sample code, untested) let rec size_of x = let t = Obj.repr x in if Obj.is_int t then 1 (* 4 bytes *) else...
Hi All, I need to find the memory size of any arbitrary OCaml object of any type: int, record, list etc. I am currently using 'Marshal.to_string39; to flatten...
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...
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...
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:...
... 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...
I have made some progress, but get strange results: The following combination ... external caml_hello_world : int -> int -> int = "hello_world";; let som =...
... # let outputstring = ref "";; val outputstring : string ref = {contents = ""} # let wys_uitvoer si se= outputstring:=""; try while true do let line =...
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...
Hello, I need to use the library "num" to make calcul with big numbers but when I enter #open "num" like it's indicate in the help section of camllight under...
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...
I would like to stop my program for a few miliseconds. ... for i = 0 to Array.length a - 1 do <do something w a.(i)> pause (10 ms) done ... How to do this? ...
... Warning: this expression should have type unit. File "F:\ocaml\sorting.ml", line 65, characters 2-145: Warning: this expression should have type unit. File...
I am trying out ocaml shell on Debian. I can't get the example in the README to work: $ ledit ocaml Objective Caml version 3.04 # #use "ocamlfind";; Findlib...
I am trying to figure out how to use List.sort. According to the manual the Persvasives.compare function is suitable ... # k;; - : int list = [3; 2; 1] #...
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...