lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 25/07/12 10:56, Dirk Laurie wrote:
Q. What's the shortest Lua 5.2 program that prints itself?

- Length is measured by number of characters, blanks included.
- No "require", "dofile" etc: the program must be self-contained.


As a starting point, http://www.nyx.net/~gthompso/quine.htm

-----------------------------------
Language:Lua http://www.tecgraf.puc-rio.br/lua/


Author:Roberto Ierusalimschy

y = [[ print("y = [[" .. y .. "]]\ndostring(y)") ]]
dostring(y)
-----------------------------------