Jacob Carlborg wrote:
But I was thinking more of modifying the compiler and adding a new pragma that calls into my library.

That would probably be a better option I think. In fact, eventually DMD could just have the cache system built in and the ability to import .h files just like .d ones. Now that would be pretty cool. All the .di cache files could be stored in ~/.dmd/ (or equivalent) or converted manually (dmd -CtoD file.h) for distribution.

Reply via email to