Accessing C++ code from D

Walter Bright newshound at digitalmars.com
Tue May 16 01:57:13 PDT 2006


Hasan Aljudy wrote:
> assuming that no complex C++ features are used in the definitions.

The trouble is, they always are. I once looked at automated translation 
of wxWindows, and that's written in a pre-STL pre-template style. No way.

The only C++ code I've been able to convert without much difficulty is 
my own, and that's because I use a gc with my C++ projects, and I 
deliberately write it in a D style. You can see that in the DMD front 
end source.



More information about the Digitalmars-d mailing list