How is the D programming language financed?
spir
denis.spir at gmail.com
Fri Dec 24 01:41:43 PST 2010
On Thu, 23 Dec 2010 23:18:06 -0600
Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> 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!
What is this syntactic form (".something")? Is there an explicit alternative, with a prefix?
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
More information about the Digitalmars-d
mailing list