DMD 1.005 release

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Tue Feb 6 08:58:58 PST 2007


BCS kirjoitti:
> Without the gratuitous stuff that has to be the cleanest quine outside
> of bash (in bash an empty file prints nothing)
> 
> import std.stdio;
> void main(){writef(import(__FILE__));}

And if the strings don't mess up with printf, it can be made even shorter:

void main(){printf(import(__FILE__));}



More information about the Digitalmars-d-announce mailing list