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! -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Me encanta el éxito; por eso prefiero el estado de progreso constante, con la meta al frente y no atrás. -- Ricardo Vaporeso. Punta del Este, Enero de 1918.