Discussion: LSL quine
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
12-24-2006 17:55
Merry Christmas... a little bit of a programming joke for you from me and Seifert Surface :) string c="%22;%0A%0A// This LSL script is a Quine. It prints its own sourcecode via llSay.%0A%0Adefault {%0A state_entry() {%0A llSay(0,llUnescapeURL(%22string c=%2522%22) + c + llUnescapeURL(c));%0A }%0A}";
// This LSL script is a Quine. It prints its own sourcecode via llSay.
default { state_entry() { llSay(0,llUnescapeURL("string c=%22") + c + llUnescapeURL(c)); } }
|
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
|
Original Thread
12-24-2006 20:53
_____________________
i've got nothing. 
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
12-25-2006 11:29
Users of this script and others similar to it should be aware that due to the very nature of the script, certain libsl bots* within range of the running script will be able to make a flawless duplicate of it. There is, unfortunately, no technological solution to the lack of security inherent in scripts of this type**, as it is a necessary feature that the data itself (rather than merely the effects of the data) be viewed on (and therefore sent to) the client. and everyone else. (**) well, I guess you could switch it to OwnerSay instead.
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
12-25-2006 19:31
Rofl.
Is there really any practical application for such a script?
_____________________
My SLExchange shopTypos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not. The function is working perfectly fine. It's just not working the way you wanted it to work.
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-25-2006 19:37
From: Senuka Harbinger Rofl.
Is there really any practical application for such a script? The most practical reason of all. It put a smile on my face!!!! Definitely a two thumbs up and ultra high coolness factor.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
Foo Spark
alias Bathsheba Dorn
Join date: 8 Nov 2006
Posts: 110
|
12-26-2006 15:58
Yields falsehood when preceded by its own quotation.
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
12-27-2006 11:25
From: Foo Spark Yields falsehood when preceded by its own quotation. Don't make me pull out my Metamagical Themas.
|
Foo Spark
alias Bathsheba Dorn
Join date: 8 Nov 2006
Posts: 110
|
12-27-2006 14:16
From: Lex Neva Don't make me pull out my Metamagical Themas. That doesn't yield falsehood!
|
Thygrrr Talaj
Registered User
Join date: 2 Jan 2007
Posts: 46
|
01-05-2007 06:20
You, Sir, are a God among Men!
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
01-07-2007 23:57
From: Foo Spark Yields falsehood when preceded by its own quotation. Yields falsehood when preceded by its own quotation. (happy now?)
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|