Topic awaiting preservation: Quines... (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 02-07-2004 17:51
I was feeling bored in the utmost this afternoon, so I wrote a quine. I checked it and I am pretty certain it is perfect. I might hav slipped with the quotes or something, but I think it works. Its not overly small, but its a lot more readable than the only other JS one I've seen. Here we go: |
Nervous Wreck (II) Inmate From: |
posted 02-07-2004 20:11
I found a little error: code: <script>... code ... </scri It added the tags, and the second one only says "scri". code: #!/usr/bin/perl -w Tell me if you know how I could shorten it (besides removing the first 2 lines). |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 02-07-2004 20:53 |
Nervous Wreck (II) Inmate From: |
posted 02-07-2004 21:24
quote:
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 02-07-2004 22:00
Sorry, I didn't explain. Its just like ninmonkey quoted. If you run that source code, it should come up with an exact copy of itself. |
Paranoid (IV) Inmate From: France |
posted 02-08-2004 07:05
wrayal: I tried 3 different things |
Paranoid (IV) Inmate From: France |
posted 02-08-2004 09:13
QUINE is fun |
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 02-08-2004 14:07
Somehow I get the feeling that there is cheating inherent in |
Paranoid (IV) Inmate From: France |
posted 02-08-2004 20:14
wrayal: I admit that my 2 first quines are more in DHTML than in JavaScript only. But I'm not a QUINE expert so I don't know if using the introspection capabilities of the language "validates" the 3rd & 4th ones. |