views:

306

answers:

2

I hear D is link-compatible with C. I'd like to use D to create an extension module for Python. Am I overlooking some reason why it's never going to work?

+13  A: 

Wait? Something like this http://pyd.dsource.org/

wuub
Wait? For what?
James McMahon
emmmmm....... 42.
wuub
Yep PyD is what you want. Anyone know if it works with the latest DMD 1.x or 2.x versions?
Baxissimo
The commit messages show that it was intended to work with both at times. I doubt it works with latest D2 as that has changed a lot but don't expect it to work too well with D1 either as the last change to /trunk was august 07 http://dsource.org/projects/pyd/log/trunk
Tim Matthews
+2  A: 

Sounds easy and people here who say it's just up to the C API don't know how difficult it is to integrate the Boehm GC used by D within Python. PyD looks like a typical concept proof where people haven't realized the real world problems.

Lothar