Migrating dmd to D?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Feb 27 17:05:07 PST 2013


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


More information about the Digitalmars-d mailing list