February 07, 2007
Kirk McDonald Wrote:
<snip>
> // file test.d
> mixin(`import std.stdio : writefln;`);
> 
> mixin(`void main() {
>      mixin("writefln(import(\"test.d\"));");
> }`);

So now you can write cheat quines in D!  But the cheating is at compile time, rather than at run time as with cheat quines in some other languages.

Stewart.