More info here on the OCaml/C interface: http://www.soton.ac.uk/~fangohr/nsim/tutorial/ocaml/lecture5.html

On 2/19/07, Robert Roessler <roessler@rftp.com> wrote:
Joel Reymont wrote:
> Are there any examples of creating C++ library bindings?

Well, on the "Caml Humps", you should be able to find something. :)

In particular, I released a *simple* version of an OCaml binding for
the PCRE pattern-matching library: "LablPCRE 1.0".  While simple, it
is also non-trivial (it utilizes "custom" blocks with finalization).

As it happens, the package was originally class-based, and then was
switched to a module orientation after "input" from the list. ;)

I also have a much larger binding for the Scintilla editing component
("LablScintilla 0.9pre1"), but it *is* quite a bit larger, *and*
interfaces with LablGTK (representing a much more interesting can of
worms).. so it would be better to digest LablPCRE first.

Robert Roessler
roessler@rftp.com
http://www.rftp.com

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



--
Dário Abdulrehman