www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - tooling/help for rewriting C projects with betterC

reply yawniek <yawniek srtnwz.com> writes:
is there any tooling or tutorials on how one would approach a 
(partial) rewrite for bigger C projects that use e.g. cmake ?

is there a way parts of it could be automated (if so which parts) 
?

this might help D a lot if people that want to learn/rewrite a 
library would get support and appropriate tooling.
also best practices and help on how C patterns can be transformed 
to (safe!) d code.
Dec 27 2017
parent Jacob Carlborg <doob me.com> writes:
On 2017-12-27 21:48, yawniek wrote:
 is there any tooling or tutorials on how one would approach a (partial) 
 rewrite for bigger C projects that use e.g. cmake ?
 
 is there a way parts of it could be automated (if so which parts) ?
 
 this might help D a lot if people that want to learn/rewrite a library 
 would get support and appropriate tooling.
 also best practices and help on how C patterns can be transformed to 
 (safe!) d code.
There's DStep [1], but that will only translate the headers to D modules. If you try it, please build it yourself from master. The binaries are very old. [1] https://github.com/jacob-carlborg/dstep -- /Jacob Carlborg
Dec 28 2017