caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Mikhail Fedotov" <mfedotov@mera.ru>
To: "'Caml-list'" <caml-list@inria.fr>
Subject: [Caml-list] CAMLprim & CAMLexport
Date: Wed, 30 Apr 2003 15:02:50 +0400	[thread overview]
Message-ID: <00a301c30f08$0a9ad4a0$a917a8c0@merann.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

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
book.

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
correct)? 

 

Mikhail


[-- Attachment #2: Type: text/html, Size: 2890 bytes --]

                 reply	other threads:[~2003-04-30 11:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00a301c30f08$0a9ad4a0$a917a8c0@merann.ru' \
    --to=mfedotov@mera.ru \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).