How is the D programming language financed?

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Dec 23 19:35:37 PST 2010


On 12/24/10, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> Don't forget to call your program stats.d or put a module stats
> declaration at its top.
>
> Andrei
>

Hardcoding module names in our code?! I beg to differ, sir!

module testmodule;

import std.string : split;
import std.stdio : writeln;

string modulename = split(.stringof)[1];

void main()
{
    writeln(modulename);
}


More information about the Digitalmars-d mailing list