Shortest quine in D

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 26 16:48:06 PDT 2017


On Wednesday, 26 April 2017 at 23:19:32 UTC, H. S. Teoh wrote:
> ------hello.d:------
> import std.stdio;void main(){write(import("hello.d"));}
> --------------------
>
> Thanks to string imports, quines in D are actually trivial. :-D
>
>
> T

use __FILE__
to make it a little more portable



More information about the Digitalmars-d mailing list