... First, all function take a parameter. All. Second, the documentation say : val close_process_full : Pervasives.in_channel * Pervasives.out_channel *...
400
Johann Spies
jspies@...
Jul 17, 2002 1:28 pm
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...
401
Johann Spies
jspies@...
Jul 17, 2002 2:41 pm
I have made some progress, but get strange results: The following combination ... external caml_hello_world : int -> int -> int = "hello_world";; let som =...
... 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...
403
Dmitry Bely
dbely@...
Jul 20, 2002 6:25 am
... Sure. You are using OcamlMakefile the wrong way. Replace SOURCES=camlndspasswd.ml toets.o with SOURCES=camlndspasswd.ml toets.c Don't forget also that...
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:...
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...
... yes. just set the environment variable OCAMLRUNPARAM to b as in : moi@debian:~/lang/ocaml$ export OCAMLRUNPARAM=b moi@debian:~/lang/ocaml$ ocamlc -g...
... The library functions often fail with 'Failure "name_of_function"'; in this case, it's probably List.hd which receives an empty list. ... Don't forget to...
... Yes, each call to List.hd/List.tl check to see if the list is not empty. And it's a fun call. -- Rémi Vanicat vanicat@... ...
410
Johann Spies
jspies@...
Jul 22, 2002 7:11 am
... Thanks. I will try out camlidl. Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Then...
Here's a simple implementation of split: let rec split list test = match list with [] -> raise Not_found ... else let (before,x,after) = split tl test in ...
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...
... 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...
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...
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...
Hmm, thanks, that file does exist... but when I try to load it I get: # #load "graphics.cma";; Cannot load required shared library: %1 is not a valid Win32 ...
419
Kontra, Gergely
kgergely@...
Aug 16, 2002 3:27 pm
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...
420
Oliver Bandel
oliver@...
Aug 16, 2002 10:50 pm
Hello, I'm looking for a library, which is able to read different graphic-files-formats and load it into an array or into a format, useable by the...
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...
... Sorry for this. Where I am it's quite sunny and most of all I was not thinking of where you can be. Please excuse me. Ernesto...
423
Oliver Bandel
oliver@...
Aug 23, 2002 1:45 pm
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. ...
... In my knowledge and practice functional programming is mainly useful for using functions as arguments. So, you can forget values while programming. ... ...
... Sorry for the intrusion in the discussion, but I'd like to write some considerations about continuations, as I see them quoted, and they are something I...
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:...