Re: [Q] print function and stdout redirection?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [Q] print function and stdout redirection?
- From: PA <petite.abeille@...>
- Date: 2007年10月16日 20:14:49 +0200
On Oct 16, 2007, at 15:18, Daniel van Ham Colchete wrote:
On 10/16/07, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>
wrote:
just redefine print.
And use io.write()
In other words, something along those lines:
function print( ... )
local aBuffer = {}
for anIndex = 1, select( '#', ... ) do
aBuffer[ #aBuffer + 1 ] = tostring( select( anIndex, ... ) )
end
io.write( table.concat( aBuffer, '\t' ), '\n' )
end