This is a good point. I'm not that familiar with the bindings in ocaml. What I can say is that bindings should be written at an abstract enough level that they don't mess directly with internal bit representations. Using the ctypes library seems like a good way to go. If a bunch of libraries' bindings have to be rewritten because the internal runtime representation has changed... well then maybe that should be done once to allow them to be abstract enough so that future internal changes don't have the same impact.

Yotam


On Fri, Sep 27, 2013 at 12:20 PM, Dmitry Grebeniuk <gdsfh1@gmail.com> wrote:
Hello.

>> (this is a thread about runtime values
>> representation, I suppose.)
> This isn't really relevant to this topic, since this discussion is just
> about ocaml headers, rather than the ocaml C FFI. The FFI would remain
> largely the same.

  There is a lot of bindings have to be rewritten due to these
changes.  You can not automate it with C preprocessor.  What would you
suggest here?

--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs