On 12/23/10 9:35 PM, Andrej Mitrovic wrote:
module testmodule;

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

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

void main()
{
     writeln(modulename);
}

What the... I didn't know you can do that. Thanks for the tip!

Andrei

Reply via email to