Migrating dmd to D?

John Colvin john.loughran.colvin at gmail.com
Wed Feb 27 17:03:31 PST 2013


On Thursday, 28 February 2013 at 00:55:44 UTC, 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).

OT:

Could you perhaps detail the process you went through to get 
opencv to D? It would be a big help to me as I'm currently 
staring down the barrel of having to re-implement a chunk of 
OpenCV in D for a data processing app.


More information about the Digitalmars-d mailing list