From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA28745; Wed, 30 Apr 2003 13:02:55 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA28711 for ; Wed, 30 Apr 2003 13:02:54 +0200 (MET DST) Received: from mail.mera.ru (FireWall.mera.ru [195.98.50.58]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h3UB2rT14684 for ; Wed, 30 Apr 2003 13:02:53 +0200 (MET DST) Received: from drweb by mail.mera.ru with drweb-scanned (Exim 4.12) id 19ApMS-000ExE-00 for caml-list@inria.fr; Wed, 30 Apr 2003 15:02:52 +0400 Received: from mail2.mera.ru ([192.168.23.160]) by mail.mera.ru with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.12) id 19ApMR-000Ex8-00 for caml-list@inria.fr; Wed, 30 Apr 2003 15:02:51 +0400 Received: from heaven (heaven.merann.ru [192.168.23.169]) by mail2.mera.ru (8.12.3/8.12.3) with ESMTP id h3UB2oaK025000 for ; Wed, 30 Apr 2003 15:02:50 +0400 (MSD) (envelope-from mfedotov@mera.ru) From: "Mikhail Fedotov" To: "'Caml-list'" Subject: [Caml-list] CAMLprim & CAMLexport Date: Wed, 30 Apr 2003 15:02:50 +0400 Message-ID: <00a301c30f08$0a9ad4a0$a917a8c0@merann.ru> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A4_01C30F29.91AC74A0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam: no; 0.00; camlprim:01 camlexport:01 camlextern:01 expecially:01 dll's:01 ocaml:01 modules:02 external:03 exported:03 hairy:04 arial:95 accessed:04 oreilly:05 functions:05 messing:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_00A4_01C30F29.91AC74A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_00A4_01C30F29.91AC74A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_00A4_01C30F29.91AC74A0-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners