<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>A casual look around couldn't find anything. I can modify Self arrays and such so can at least pass data back and forth. I was looking at running an existing program in a background thread and using the FFI to call back into Self when events happen in that existing program. <br></div>
<div> </div>
<div>I'll take another approach of having that program communicate via sockets (or possibly zeromq) to Self for calling back information. It'll be fine.<br></div>
<div> </div>
<div> </div>
<div>On Thu, Mar 13, 2014, at 01:11 PM, Russell Allen wrote:<br></div>
<blockquote style="margin: 0px 0px 0px 4px;" type="cite"><div>













 

<span style="display:none"> </span>


<br></div>
<div style="position: relative; font-family: Arial,helvetica,clean,sans-serif; font-size: 13px;"><div style="z-index: 1; line-height: 1.22em;"><div style="font-family: Georgia; line-height: 1.22em;"><p style="margin: 0px 0px 1em; line-height: 1.22em;"><br></p><div style="line-height: 1.22em;">Not that I know of, but I haven't investigated the VM enough to be 100% sure. I imagine it would require some sort of OOP pinning so that the object isn't moved by the garbage collector while the foreign code is running.<br></div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;">Just out of interest which library are you thinking of linking to?<br></div>
<div style="line-height: 1.22em;"> </div>
<div style="line-height: 1.22em;">Russell<br></div>
<div> </div>
<div style="line-height: 1.22em;"><div style="line-height: 1.22em;">On 12 Mar 2014, at 10:23 pm, ardeujho <<a style="line-height: 1.22em;" href="mailto:ardeujho@cd.pn">ardeujho@cd.pn</a>> wrote:<br></div>
<div> </div>
<blockquote style="line-height: 1.22em; margin: 0px 0px 0px 4px;" type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; line-height: 1.22em;"><div style="font-size: 13px; font-family: Arial,helvetica,clean,sans-serif; line-height: 1.22em;"><div style="line-height: 1.22em;"><div style="font-family: Georgia; line-height: 1.22em;"><p style="margin: 0px 0px 1em; line-height: 1.22em;">Is it possible to call Self methods from
  C glue code? I know Self can<br></p><div defang_dir="" class="">call C code but I'd like to be able to pass a Self block or object to a<br></div>
<div defang_dir="" class="">C function and have it call it. Is this possible?<br></div>
</div>
<div style="color: rgb(255, 255, 255); height: 0px; line-height: 1.22em;"> </div>
</div>
</div>
</div>
</blockquote></div>
<div> </div>
<p style="margin: 0px 0px 1em; line-height: 1.22em;"><br></p></div>
<div style="color: rgb(255, 255, 255); height: 0px; line-height: 1.22em;"><br></div>
</blockquote></body>
</html>