Hi all, hope all is well I wondered if anyone had an idea of how to get around needing a hashtable in which all the keys are strings, but, the values may be of...
Hello. I need to write floating point values to a binary file. The file must be in a specific format for compatibility with outside applications, and the...
Hello all, I should like to know more about subtyping polymorphism and OCaml ( if I'm not the only OCaml programmer in the world that worries about the...
Hello, I've been hacking a bit in Ocaml lately, but I've had a lot of trouble writing a good makefile as I have done for my C projects. Problem 1: ocamlc...
We just released our vector graphics library with both free and commercial editions: http://www.ffconsultancy.com/products/smoke_vector_graphics/?o This...
Hello, I have studied a example from OCaml system manual, and cannot get throuth idea of "keeping polymorphism" as following: #type idref = { mutable id: 'a....
what is the meaning of "*"? thanks. type stm = SEQ of stm * stm means stm followed by stm? like in # type exp = CONST of int * int;; how to write such a...
Menhir (similar to ocamlyacc) indicates that my grammar file has a shift/reduce conflict. If I remove the definition of "box" from my grammar file, then it...
Hi ! I'm interested to study several old Caml Light examples I've collected and to adapt them to OCaml. Please have you got a link to the (small, I hope) list...
Hi folks, if I define my own data types in OCaml... Can I impose additional restrictions within a type constructor? For example, to represent a "time value"...
Hi all, I amuse this is a has already been discussed somewhere, but i cant find any satisfactory answers. Since thanks to the its strict static typing ocaml...
Hi everyone, I was wondering if anyone have tried to run LACAML on a win32 system? Does anyone know what are the basic steps? I was hoping to get the "Matrix...
Hello, I have changed the stdlib Map file and added the following type: type 'a enum = ... and have made it "visible" (i.e: non-abstract) in both the interface...
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please...
1. I found In many cases there is no "function" key word. 2. And how do we differentiate with evaluation? beginner, thanks! #let rec fib n = # if n < 2 then 1...
i couldn't find the answer online. thanks! 1. what's the "-" mean? # let double x = x*2 in List.map double [1;2;3;];; - : int list = [2; 4; 6] [Non-text...
Hello, in the hashtbl.ml you can find type ('a, 'b) bucketlist = Empty ... I think this is the same es type ('a, 'b) bucketlist = ('a * 'b) list Is there any...
Hi all, I'm wondering if lexing style regular expressions can be used within ocamlyac. for example, take a simple if-else statement, we may have 1. if ( a ) ...
Basic question. Thanks. why we map key words to upper case in lexer? Other than use the original words? ... [Non-text portions of this message have been...
...a quick search on the ocaml hump give me http://caml.inria.fr/cgi-bin/hump.fr.cgi?contrib=447 ... -- Pablo Polvorin [Non-text portions of this message have...
Hello, I have seen the following types declared for the stdlib Map: type +'a t type (+'a) t Could anyone tell me where I can get (very) basic info on this? I...
Hi ! liblablgl-ocaml-dev package on Debian Etch is the OpenGL interface. In order to build the provided examples, I tried with findlib like this : ocamlfind...
Folks, What is the cause of this error and how do I resolve it? Thanks, Joel ... ocamlc -g -w s -dtypes -I /usr/local/lib/ocaml/site-lib/pcre -c apache.ml File...
Hi ! Please consider a labeled sum, like this one : type label_sum = Ca of int ... ;; If we have such a label_sum instance : let v = Ca 1234 ;; We are sure "v"...
Hi everyone, The new version of ODT has been released this morning. It is ready for OCaml 3.10 and its new AST (e.g. virtual fields). Everything is available...
Real-time 2D rigid body simulation with OpenGL visualization in under 400 lines of OCaml code: http://www.ffconsultancy.com/ocaml/balls/ Handles 100 balls with...
hello guys, can the ocaml compiler figure out that this code can be simplified let id x = x let a = ref 1 a := id !a (I've a datastructure that sometimes is...