Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Polymorphic calls to C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Polymorphic calls to C
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