February 07, 2007 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.
|
Copyright © 1999-2021 by the D Language Foundation