[REBOL] Re: One-line Quine anyone?
From: anton:lexicon at: 24-Nov-2002 23:34
There was a thread on this before,
so check that out on escribe.
There should be a distinction between
console and file quines.
Here's my one line console quine:
do s: {print rejoin ["do s: {" s "}"]}
A file quine can muck about with
system/script/header/file to find its filename,
and a console quine can maybe muck around with
system/console/history, but maybe these ways are
impure
. :)
I tried to make both a console and file quine
in one, but made an infinite loop...
Anton.