Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
OCaml/C interface
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-28 (15:38)
From: David Teller <David.Teller@e...>
Subject: Re: [Caml-list] OCaml/C interface
Interesting, thanks.


On Sun, 2007-10-28 at 09:48 -0400, Christopher L Conway wrote:
> This is very similar to what you would get from SWIG
> (, OCaml support is in SVN): it generates a
> binding where each C function has type c_obj -> c_obj, where c_obj is
> more or less your c_type. Basically, this just hoists the problem up
> one level of abstraction, so that instead of writing C code using
> mltypes.h, you write OCaml code that massages effectively untyped
> values coming out of the library.
> Regards,
> Chris