DStep - Bindings Generator 0.0.1

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Jul 8 12:53:08 PDT 2012


On 7/8/12 3:05 PM, Leandro Lucarella wrote:
> Jacob Carlborg, el  8 de July a las 13:13 me escribiste:
>> On 2012-07-07 23:20, Walter Bright wrote:
>>
>>> I think this is potentially a big deal.
>>>
>>> If it can be made complete enough, I'd like to add support into D for
>>> it, so you could do things like:
>>>
>>>      import "stdio.h";
>>>
>>> and the D compile would fork/exec Dstep, generate the corresponding .d
>>> file, and import the .d file.
>>
>> How is this going to work, is it going to be an optional feature? I
>> mean, this will add DStep (D and Clang) as dependencies to DMD.
>>
>> DStep is built to be used as a library, I can easily create a C API
>> which can be used directly by DMD. No need for creating a new
>> process. I can also make DStep give back the translate D code, no
>> need for creating temporarily D files.
>
> This can also be done by just dumping the generated code to stdout.
> Then any application can use the output without using any temporary
> files. Pipes for the win!

Good old date checks (makefile style) can be used for the win.

Andrei




More information about the Digitalmars-d-announce mailing list