[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua quine
- From: Miles Bader <miles@...>
- Date: Tue, 13 May 2008 10:37:27 +0900
Noé Falzon <noe.falzon@tiscali.fr> writes:
> I tried to write one myself, and came up with :
>
> ---------
> s=[[io.write('s=[','[',s,']','];',s)]];io.write('s=[','[',s,']','];',s)
> ---------
A variant using "print" might be nice, to get a final newline:
s=[[print('s=['..'['..s..']'..'];'..s)]];print('s=['..'['..s..']'..'];'..s)
-Miles
--
Bore, n. A person who talks when you wish him to listen.