DStep - Bindings Generator 0.0.1

Jacob Carlborg doob at me.com
Sun Jul 8 04:15:46 PDT 2012


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




More information about the Digitalmars-d-announce mailing list