Shortest quine in D

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 26 16:19:32 PDT 2017


------hello.d:------
import std.stdio;void main(){write(import("hello.d"));}
--------------------

Thanks to string imports, quines in D are actually trivial. :-D


T

-- 
Knowledge is that area of ignorance that we arrange and classify. -- Ambrose Bierce


More information about the Digitalmars-d mailing list