Couldn't htod be enhanced in a way that it would also convert source files, doing all the cumbersome activities like merging class definitions and method implementations, replacing types with proper D types, converting macros to functions, some #ifdefs to versions, etc.