On 27 January 2014 16:04, Daniel Murphy <[email protected]> wrote: > "Iain Buclaw" wrote in message > news:[email protected]... > >> OK. Have you tested calling C++ destructors from D? > > > No, and I don't think they even mangle correctly. > > >> This I ask in sincerity as there is a file with functions re-written >> from the frontend to work with gdc. Wouldn't want to hit any brick >> walls here... > > > I guess we should get to splitting up mars.c > > global.c/global.h/error.c/error.h ? >
I tried that once before, only to be asked "Why are you doing this?" :o) Admittedly, it had some other stuff until I gave up waiting, sent a pull for global.stdmsg (which got merged in) then reimplemented error, warning, etc... in gdc. > Are you planning to have all the gdc driver/glue code in C++ or port some of > it to D? There are some parts that could be ported to D. But by and large, it's not going to be pretty. ie: There's no possible way for us to correctly mangle c_long in D, and there are some types in GCC that - depending on the host - could be typedef'd to long, long long or int64_t.
