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...
From: "bwv211mail" <bwv211mail@...> Subject: "ocaml_beginners"::[] ocaml libraries and using your own Date: Tue, 02 Jul 2002 21:48:55 -0000 ... As far as...
YAMAGATA yoriyuki
yoriyuki@...
Jul 3, 2002 12:00 pm
391
... From: "Steven Shaw" <steven_shaw@...> To: <ocaml_beginners@yahoogroups.com> Sent: Thursday, July 04, 2002 10:10 PM Subject: overflow...
... function can be used for pattern matching one one argument, and can be used as a shortcut for match ... with : let print_bool b = match b with true ->...
... # let outputstring = ref "";; val outputstring : string ref = {contents = ""} # let wys_uitvoer si se= outputstring:=""; try while true do let line =...
Johann Spies
jspies@...
Jul 9, 2002 10:59 am
397
... Unix.close_process_full takes some parameters !! ... so here ff is returning the function Unix.close_process_full Nicolas Cannasse...
... Thanks. I must get used to the ocaml way of documentation! Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie,...
Johann Spies
jspies@...
Jul 9, 2002 12:01 pm
399
... First, all function take a parameter. All. Second, the documentation say : val close_process_full : Pervasives.in_channel * Pervasives.out_channel *...
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...
Johann Spies
jspies@...
Jul 17, 2002 1:28 pm
401
I have made some progress, but get strange results: The following combination ... external caml_hello_world : int -> int -> int = "hello_world";; let som =...
Johann Spies
jspies@...
Jul 17, 2002 2:41 pm
402
... 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...
... 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...
Dmitry Bely
dbely@...
Jul 20, 2002 6:25 am
404
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...
... Thanks. I will try out camlidl. Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Then...
Johann Spies
jspies@...
Jul 22, 2002 7:11 am
411
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_string' to flatten...
... You should use the 'undocumented' 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 ...