lua-users home
lua-l archive

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



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