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 OAA29687; Sun, 25 Apr 2004 14:21:09 +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 OAA29592 for ; Sun, 25 Apr 2004 14:21:08 +0200 (MET DST) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3PCL7jq013208 for ; Sun, 25 Apr 2004 14:21:07 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay03.plus.net with esmtp (Exim) id 1BHid9-000844-3X for caml-list@inria.fr; Sun, 25 Apr 2004 12:21:07 +0000 From: Jon Harrop Organization: University of Cambridge To: caml-list Subject: [Caml-list] Polymorphic calls to C Date: Sun, 25 Apr 2004 13:17:15 +0100 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404251317.15307.jdh30@cam.ac.uk> X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; functor:01 ocaml:01 ocaml:01 polymorphic:01 polymorphic:01 explicit:03 interface:03 arguments:03 types:03 data:03 functions:05 cheers:06 wrap:06 calls:17 need:23 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Any recommendations on how to call C with polymorphic arguments from ocaml so that C can call ocaml functions back with the given data? I figure I need to wrap the whole thing in a functor which will make the interface types explicit, i.e. specialise the 'a. Cheers, Jon. ------------------- 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