DMD 1.005 release

Stewart Gordon smjg at iname.com
Wed Feb 7 07:49:26 PST 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.



More information about the Digitalmars-d-announce mailing list