Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[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.