output minimal .di files?

Jonathan M Davis jmdavisProg at gmx.com
Sun Jan 15 03:55:49 PST 2012


On Sunday, January 15, 2012 12:53:05 F i L wrote:
> 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?

http://stackoverflow.com/questions/7720418/whats-not-in-an-interface-file

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list