Re: Shortest quine in D

2017-04-26 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 04/26/2017 11:37 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, Apr 27, 2017 at 12:15:32AM +, Jon Degenhardt via Digitalmars-d wrote: 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"));}

Re: Shortest quine in D

2017-04-26 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 27, 2017 at 12:15:32AM +, Jon Degenhardt via Digitalmars-d wrote: > 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,

Re: Shortest quine in D

2017-04-26 Thread Ali Çehreli via Digitalmars-d
On 04/26/2017 04:48 PM, Stefan Koch wrote: 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

Re: Shortest quine in D

2017-04-26 Thread Jon Degenhardt via Digitalmars-d
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 :)

Re: Shortest quine in D

2017-04-26 Thread Stefan Koch via Digitalmars-d
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

Shortest quine in D

2017-04-26 Thread H. S. Teoh via Digitalmars-d
--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