Hi there, as an Ocaml newbie I am working on a project based around Perl (gui /WxWidgets/, database access, etc.), but some parts of it I'd like to write in...
I'm new to Ocaml and I'm mainly interested in it in order to try out and use Ocamlgraph. Thus far, I've been able to install Ocaml and get some Ocaml programs...
Hello, if a prgram does nt print an error message I assume, it works correctly. if ocamlmktop works correctly in binding libraries together, I would assume...
Hello, what is the -s option? I did not find it in the manpage or help-message from ocamlc ocamlopt ocamlyacc ocamllex I found it in the section "12.4.2...
Hi there, I try to compile someone else code, and I get the following error: camlidl -header libstp.idl sh: /lib/cpp: No such file or directory libstp.idl:...
Hi Guys, Ok, I have a number of record types and I wanted to be able to put them in a list together. So I figured I would do something like this: type rec1 =...
Dear list, While working on objects, I came up with what I think is a strange behavoir. Here's two simple classes, foo and bar who bear, both implementing a...
I'm trying to parse an html file that has in it: <h2 align=center> Xmlm fails on this because "center" is supposed to be quoted. Unfortunately I cannot fix the...
Good evening, Here is the error message Alexandre@vega /cygdrive/d/Documents and Settings/Alexandre/Mes documents/C/ocamlgraph-1.5 $ make ocamlc.opt -c -I src...
Are there functions for parsing a string as an Ocaml string or char? For example, I want something like: string_of_string "a\\tb" - should return the 3...
Hello, I've recently been playing with polymorphic variant. Here's the record declaration i am missing : type foo = { mutable bar : "any_polymorphic_variant"...
I'm trying to build current version of lwt, which now use oasis to build, on a FreeBSD system where libev include files are to be found in /usr/local/include....
Hello, I have 2 global variables foo and bar. I want foo to hold the old content value of bar, then modify bar without altering the content of foo. CASE 1 :...
Hello ! Suppose I'm writing a module signature for a data structure, let's say a set : module type SET = sig type 'a t val is_empty : 'a t -> bool val insert :...
I'm working on a project that will require downloading lots of large files from various websites. I would like to cache and re-use local copies whenever...
Hello, I am trying to build the ocaml part of gmetadom using mingw and ocaml (MS port). Everything looks good until it tries something like the following: ...
Is it possible in OCaml to pattern match against a value that is of reference type? I'm trying something like the following (including the use of type...
Here's a simple piece of code: module Gr = Graphics ;; let main () = Gr.open_graph " 640x480" ; while true do if Gr.key_pressed () then exit 0 else () done ;; ...
Hello, I'm trying to get ocamlbuild to use oUnit via ocamlfind. I've managed to do so for bytecode, I run into a problem when trying to compile to native code....
Hi, I'm using 64bit linux, wondering if there's a way to compile my ocaml program to native 32bits arch . Thanks kem -- In accordance with U.S. Treasury...
I have been writing a fairly large program using ulex. Although I can, of course, compile the modules using ulex syntax, I dont seem to be able to load it into...
Hi I am trying to use mod_float and I found strange results. For example, in toplevel, I get : # mod_float 2.0 0.2;; - : float = 0.1999999999999999 Is this...
I want to make a hash table for pairs of nums. Will the setup below work? There are two reasons why it might not. (1) It requires that num has a unique...
Hi All, I've been playing with OCaml for a couple of day. I'm stumped over what I think are a few simple things. Here's a piece of code: module Gr = Graphics...
I can make an array of arrays by doing this: Array.make 10 [||] The type of the array is determined by what happens elsewhere in the code. This is quite...
I've been unable to figure out how to use the debugger. Maybe somebody can just tell me this one little thing that would be useful, and that I can't figure out...
Does anyone know how to install ocaml-mysql on Mac OS X? I get an error about MySQL not being found, which I think is because libmysqlclient.so is not found....
How is the following possible? ... open Batteries_uni;; open Printf let err_enum (e : 'a Enum.t) : 'a Enum.t = Enum.make ~next:(fun () -> ()) (* actual code...
Hi folks, I have installed ocaml on my PC (MS toolchain port) and I want to compile a program that makes use of the ExtLib module. Though this module is not in...