On 02/27/2013 08:05 PM, Andrei Alexandrescu wrote:
On 2/27/13 7:55 PM, timotheecour wrote:
Use dtoh to initiate and conduct an incremental port of the compiler.

How about going the other way around?

Using swig to make existing dmd C++ code available to D, so we can
advance with a mix of D and C++ code until all of C++ code is converted.
I was able to successfully convert large code bases from C++ to D using
swig (eg: opencv, sfml, etc). It's the most hands-off way, with very
minimal interface file that can recursively make things accessible with
fine grained control (for opencv the interface file was < 200 loc).

I think that's a fine idea but I also believe dtoh would be a mightily
powerful program in and by itself. Once available, it would make
migration of C++ projects to D possible and easy.

Andrei

Isn't this what swig /does/ though?  What is lacking?

Reply via email to