How is the D programming language financed?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Dec 23 21:18:06 PST 2010


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


More information about the Digitalmars-d mailing list