<div dir="ltr"><div>Yes, that's right.<br><br></div>WBR, ssp<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-28 19:15 GMT+05:00 john skaller <span dir="ltr"><<a href="mailto:skaller@internode.on.net" target="_blank">skaller@internode.on.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 29 Dec. 2017, at 00:59, Serge Sivkov <<a href="mailto:ssp.mryau@gmail.com">ssp.mryau@gmail.com</a>> wrote:<br>
><br>
> An one of simplest methods will be to use<br>
> Callback.register name callback_func<br>
> on OCaml side and to use something like:<br>
> closure_f = caml_named_value(name);<br>
> ml_reply = caml_callback(*closure_f, ml_arg);<br>
> on C side.<br>
<br>
</span>So the user supplied name is used to associate the code<br>
and data across the boundary?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
—<br>
john skaller<br>
<a href="mailto:skaller@users.sourceforge.net">skaller@users.sourceforge.net</a><br>
<a href="http://felix-lang.org" rel="noreferrer" target="_blank">http://felix-lang.org</a><br>
<br>
</div></div></blockquote></div><br></div>