DMD 1.005 release
Stewart Gordon
smjg_1998 at yahoo.com
Wed Feb 7 10:46:04 PST 2007
BCS Wrote:
<snip>
> 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__));}
What is your definition of "clean"?
Moreover, there are many languages in which an empty source file is a null program - BASIC, Perl and probably most shell scripting languages (indeed, probably most scripting languages) have this characteristic. In the course of history there have even been one or two C compliers that did this.
Stewart.
More information about the Digitalmars-d-announce
mailing list