lua-users home
lua-l archive

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

> I may have missed something while reading through this, but why not
> use tables, like this?
> function tostringall(...)
>    local t={...}
>    for k,v in ipairs(t)
>       t[k]=tostring(v)
>    end
>    return unpack(t)
> end

I believe the reasoning against that was garbage creation concerns.
The simple cases at the beginning of the function were added due to
performance concerns.