lua-users home
lua-l archive

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


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.