Three Unlikely Successful Features of D

F i L witte2008 at gmail.com
Wed Mar 21 14:54:59 PDT 2012


On Wednesday, 21 March 2012 at 21:38:16 UTC, Nick Sabalausky 
wrote:
> "F i L" <witte2008 at gmail.com> wrote in message
> news:sofbqiiyvragxjaxqbix at forum.dlang.org...
>> Kapps wrote:
>>> or even automatically creating bindings for a C header file.
>>
>> I've thought about that before. It would be great to have 
>> fully automatic linking to C libs. You could even have a cache 
>> system that stores .di files and only regenerates them if the 
>> .h file was modified.
>>
>
> That hits on the one irritating limitation of CTFE: No I/O. So 
> that cache
> system would be a no-go right now.

Didn't realize that. Well until IO in CTFE is possible, 
converting a .h file into a .di file is still possible. Once 
that's done then it could just be wrapped up into a mixin cache 
system. D already has a tool to do this I believe (htod). Never 
used it though.


More information about the Digitalmars-d mailing list