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 TAA10465; Sun, 25 Apr 2004 19:22:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA10500 for ; Sun, 25 Apr 2004 19:22:11 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3PHMAYM018471 for ; Sun, 25 Apr 2004 19:22:10 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BHnKT-0006zI-00 for ; Sun, 25 Apr 2004 18:22:09 +0100 Date: Sun, 25 Apr 2004 18:22:09 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Polymorphic calls to C Message-ID: <20040425172209.GA26781@redhat.com> References: <200404251317.15307.jdh30@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404251317.15307.jdh30@cam.ac.uk> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 callback:01 autoconf:01 automake:01 compiles:01 rpms:01 ltd:98 ocaml:01 ocaml:01 polymorphic:01 polymorphic:01 receive:97 wrote:03 arguments:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, Apr 25, 2004 at 01:17:15PM +0100, Jon Harrop wrote: > Any recommendations on how to call C with polymorphic arguments from > ocaml so that C can call ocaml functions back with the given data? The C function should just receive and store the "value", without looking into it in any way, and pass it through to the callback. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles, RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/ ------------------- 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