Re: Most awesome string metatable hack
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Most awesome string metatable hack
- From: Andrew Starks <andrew.starks@...>
- Date: 2014年1月30日 18:22:01 -0600
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