> If you want to provide a "header file" for this, you may do so with a di > file (d interface). [...] > The drawbacks of doing it this way are 1) you have to maintain two files > instead of one, with almost identical contents You forget the -H switch. http://www.digitalmars.com/d/2.0/dmd-linux.html#interface_files