I've sent in this list several messages concerning the _ in types such as in '_a or _[`A]. This restriction of polymorphism to syntactical values has been ...
I am missing something obvious. I am writing a little program which takes two parameters: <source (bron)> and <destination (bestemming)> which must both be...
Hi All, I have a module (Module1) which has a record type type myrec = { field1: int; field2: int; } This type is exported (using the MLI file). This module...
Hi, if I have a [`A] I can write a function that gives me a [>`A] with the same value : Objective Caml version 3.04 # let (v:[`A])=`A;; val v : [ `A] = `A #...
Hi, I wonder why my class interface hides the 'new' constructor in the following example. I have a foo class in foo.ml ... class foo = object method bar...
Hello to everybody. I've found a grep-like ocaml program at http://www.oefai.at/~markus/ocaml_sources/pcre-ocaml-4.28.3/examples/pcregrep/ Does anybody know...
Hello to everybody I often meet the word "blit" in function names, such as Graphics.blit_image, StringLabels.blit ... what does b l i t stand for? Thank you ...
Call me an idiot. I thought my exe would be free of any 'runtime39; environments... .. an EXE compiled in cygwin requires the cygwin environment?? I want to have...
Can anyone explain why the type of s is not the same in these two sessions (ocaml 3.04) ? # let s = `A :: [];; val s : [> `A] list = [`A] # let cons e l =...
I want to use hashtable on my objects which all has a method get_string:string. but i can only write the code like these: module SeqHashType = struct type t=...
For the ones interested; I've put on my site (see below) in Caml section a little program named 'morpion39; which try to solve the 'morpion solitaire' game (see...
Hi all, Just a curiosity related to something (or one of the many things) I have never understood. For list management there's val nth : 'a list -> int -> 'a ...
I know what you're thinking - not another one of those questions. This is different that everything I've found. I've seen the other threads. I've installed...
I LOVE YOU!!!! It compiled with no errors.... I'm off to test it on a 'clean39; windows box... ... if this works..... I LOVE YOU!!! -Rich P.s. - I want to post...
I have a problem with a maximax function (I want to maximize at each step, for this is a solitaire game ;-). let rec explorer_niveau i prof table score_max...
... let find_pos e l = let rec find_pos_ e l p = match l with ... parenthesis ! in find_pos_ e l 0 What you where doing without parenthesis was (find_pos_ e t...
Hi! Writing a small list function I run into this problem, and cannot find the reason for the error message. let find_pos e l = let rec find_pos_ e l p = match...
Hello I'd like a program to be executed on all files in a directory, so I was thinking of something like what in bash script would be for filename in *.$1 do ...
Dear ocaml_beginners list I'm trying to use the Event module, but it doesn't work well. When I use some functions, I get an error message as follows. # let ch...
Hi! Is there a FAQ about using syntaxes? I know I can convert old-style ocaml programs to new style, but can I do this in the other way? And how to convert...
I was looking to see how various the world is for what concerns parsing. In particular, I was asking myself: is there a quickest way to parse things, than...
Hello, I am new to ocamldebug and trying to set a breakpoint. (ocd) break Bdbfs.dir_addentry Loading program... done. The module path Bdbfs is not yet...
Is there a built-in function for outputting the hex of a string's char codes ? I.e. something that does this : let rec hexstring s = let l = String.length s in...
I want to select each xth item from a list into a new list. I don't understand why I get a syntax error in the following function: # let elke_nde getal lys =...
When I chose to learn OCaml as my "language of the year" it seemed like a good choice. I had some basic requirements for a language: 1) There be a free ( for...
On Fri, 18 Oct 2002 12:56:17 +0200, Sven Luther ... But then why does it call cl.exe? ... But then why does cameleon use ocamlc? Obviously you want to use...
Hello, I'm trying to manage with constructed types in a particular way, can anyone tell me if it is a "really bad" way? I want to use 'a lists with an...
Hi I can't remember whether can sources using Camlp4 parsers be compiled with ocamlopt. I'm compiling with flags -I +camlp4 gramlib.cmxa but as soon as there...