output minimal .di files?

F i L witte2008 at gmail.com
Sun Jan 15 03:53:05 PST 2012


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?


More information about the Digitalmars-d-learn mailing list