www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Re: DMD 1.005 release

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.
Feb 07 2007