Created
February 24, 2014 02:06
-
-
Save DrummerHead/9180698 to your computer and use it in GitHub Desktop.
My first Quine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c=["p", "r", "i", "n", "t", "\"", "c", "=", "\"", ";", "p", " ", "c", ";", "c", ".", "e", "a", "c", "h", "{", "|", "c", "|", "p", "r", "i", "n", "t", " ", "c", "}"] | |
print"c=";p c;c.each{|c|print c} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"More precisely stated, the problem is to write a source program that, when compiled and executed, will produce as output an exact copy of its source. If you have never done this, I urge you to try it on your own. The discovery of how to do it is a revelation that far surpasses any benefit obtained by being told how to do it." —Ken Thompson on Reflections on Trusting Trust