On 2012-07-08 04:59, Andrei Alexandrescu wrote:
On 7/7/12 5:20 PM, Walter Bright wrote:
In fact, we could make it a general facility, where if D sees:

import "filename.ext";

that it fork/exec's the program:

ext_to_D filename.ext tmpfile.d

and them imports tmpfile.d.

(Aside) This has an obvious security risk.

Andrei

Don't know if it helps but the tool can be easily used as a library and wrapped in a C API. Then DMD can used the tool directory like a library. No need for creating a new process and writing temporary files.

--
/Jacob Carlborg


Reply via email to