www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Automated source code translation

Source code translation can be valuable for many reasons, one 
reason is when you want a library to be available on a server and 
multiple clients (javascript, C++, Objective-C etc). Let's assume 
that you use D in a conservative way, but write idiomatic D.

What features in safe-D is either difficult or impossible to 
translate in another imperative language in an automated fashion, 
without sacrificing readability? And how do you write code that 
can be translated (by an algorithm) without sacrificing phobos or 
readability in the output?

What strikes me as the most challenging construct is the 
macro-like features in the template libraries. Although I suppose 
an advanced analytical solution could be found.

Any thoughts on this?
Jan 22 2014