Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] CAMLprim & CAMLexport
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-30 (11:02)
From: Mikhail Fedotov <mfedotov@m...>
Subject: [Caml-list] CAMLprim & CAMLexport
Hi all,


After browsing through ocaml code I figured out the following:

1. CAMLprim is for the functions to be exported and accessed from
ocaml code (functions that return "value")
2. CAMLexport is for the functions called from C code.
3. CAMLextern is for the function declarations in headers when C code

is hairy and consists of several modules.

4. CAMLprim usage is presented as a Good Thing for all the external code
in the reference manual but it is not even mentioned in the Oreilly

5. CAMLprim & CAMLexport usage are expecially important when messing
with windows dll's, but I've never worked with dll's and can't
understand how
to use it.


Can this information be added in the reference manual (if it is