lua-users home
lua-l archive

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


Hello, the following is a rather short Lua Quine:

q="q=%qprint(q:format(q))"print(q:format(q))

> On Jun 1, 2016, at 5:06 AM, Martin <eden_martin_fuhrspam@gmx.de> wrote:
> 
> print(io.open(arg[0]):read('*a'))
> 
> 33 characters. Prints contents of any file. In Lua 5.3 may change '*a' to 'a'. But I don't consider this as a fair record as it assume code is stored in file as plain-text.
> 
> 
>