lua-users home
lua-l archive

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


Yes, we've all seen the C equivalent
(http://www0.us.ioccc.org/1994/smr.hint) that caused the rules to be
changed so that things must be at least one character in length. It
does mean that the zero byte file is both a C quine and a Lua quine at
the same time.

2008/5/13 David Given <dg@cowlark.com>:
> Noé Falzon wrote:
>  [...]
>
> > Has anyone written his own yet ?
>
>  Of course, in Lua, this:
>
>  ---start---
>  ---end---
>
>  ...is a completely valid quine. (Hey, it prints its source!) Admittedly,
>  it's not a very *interesting* one...
>
>  --
>  ┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
>  │ "I have always wished for my computer to be as easy to use as my
>  │ telephone; my wish has come true because I can no longer figure out
>  │ how to use my telephone." --- Bjarne Stroustrup
>
>