[Prev][Next][Index][Thread]

Re: Objective C bridge



In article <d_voss-1F0305.00491909032001@news.uswest.net>, Dustin Voss 
<d_voss@uswest.net> wrote:

> I'm only trying to add minimal Obj C support. It can be improved later, 
> but I'm itching for results and don't feel capable of handling the whole 
> thing right off. I'm new at this. Here's what I'm aiming for:

I'd love to help make d2c talk to Cocoa, but I don't know yet whether I 
have a computer capable of running OS X -- I'm pretty sure my 8500 (with 
a G3 card) isn't supported by 1.0 (and maybe never will be), but I don't 
even know if my old SCSI/ADB/serial PowerBook G3 is supported.


> In the meantime, I'm looking for information on Gwydion Dylan's support 
> for C callback functions. I checked, but couldn't find anything, at 
> www.gwydiondylan.org and the Deja Google archives.

Which way do you want to go?

d2c has no problem calling C functions.  It can even wrap up a Dylan 
function into a closure that can be passed to C code and called from 
there.

You can find the source code for the support in the file 
src/d2c/runtime/c-code/trampoline.c.

-- Bruce



Follow-Ups: References: