Yes, that's right.

WBR, ssp

2017-12-28 19:15 GMT+05:00 john skaller <[email protected]>:

>
> > On 29 Dec. 2017, at 00:59, Serge Sivkov <[email protected]> wrote:
> >
> > An one of simplest methods will be to use
> > Callback.register name callback_func
> > on OCaml side and to use something like:
> > closure_f = caml_named_value(name);
> > ml_reply = caml_callback(*closure_f, ml_arg);
> > on C side.
>
> So the user supplied name is used to associate the code
> and data across the boundary?
>
>
> —
> john skaller
> [email protected]
> http://felix-lang.org
>
>
_______________________________________________
Ctypes mailing list
[email protected]
http://lists.ocaml.org/listinfo/ctypes

Reply via email to