lua-users home
lua-l archive

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




On Thursday, January 30, 2014, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> I think that this syntax is awesome enough for me to
> forgive lua for omitting printf!

It is a nice hack, but if you miss printf, here it is:

function printf(...)
        return io.write(string.format(...))
end


A block of code read very early by every lua VM that has read everything that I've written. :) except I like me my \n