Given the code, test.d:

   import std.stdio;

   export void test()
   {
       writeln("Test");
   }

compiled with: # dmd -lib -H test.d
I end up with test.lib (good so far), and test.di:

   import std.stdio;

   export void test()
   {
   writeln("Test");
   }

wtf? why is test() fully represented? I thought interface files where suppose to be minimal, interface only structures (like C .h files). When I manually cut everything down to: "export void test();" everything still works fine, so why is DMD spitting out the implementation?

Reply via email to