Python calling D

FreeSlave freeslave93 at gmail.com
Wed Dec 11 00:40:48 PST 2013


On Wednesday, 11 December 2013 at 05:30:49 UTC, CJS wrote:
> I'd like to use cython to wrap a D library. It's possible to do 
> this with a statically compiled C library, but it fails when I 
> try with a statically compiled D library. Any suggestions on 
> how to do this successfully?

I'm not Cython guy, but as I know, Cython generates C code, 
right? Then probably at first you should learn how to call D 
functions from C side. I don't know how to do it correctly. It's 
easily to call those D functions which don't use 'new' operation 
and garbage collection (explicitly or implicitly). But when they 
do that, I get segmentation fault.


More information about the Digitalmars-d-learn mailing list