On Thu, 23 Dec 2010 23:18:06 -0600 Andrei Alexandrescu <[email protected]> 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
