DMD 1.005 release
BCS
BCS at pathlink.com
Tue Feb 6 08:46:05 PST 2007
Kirk McDonald wrote:
> Walter Bright wrote:
>
>> Fixes many bugs, some serious.
>>
>> Some new goodies.
>>
>> http://www.digitalmars.com/d/changelog.html
>>
>> http://ftp.digitalmars.com/dmd.1.005.zip
>
>
> Mwahaha! This program, when run, prints out a copy of its own source. It
> also has some completely gratuitous new-style mixins.
>
> // file test.d
> mixin(`import std.stdio : writefln;`);
>
> mixin(`void main() {
> mixin("writefln(import(\"test.d\"));");
> }`);
>
Without the gratuitous stuff that has to be the cleanest quine outside
of bash (in bash an empty file prints nothing)
import std.stdio;
void main(){writef(import(__FILE__));}
More information about the Digitalmars-d-announce
mailing list