lua-users home
lua-l archive

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


Doug Currie wrote:
> So, my request is that Lua 5.2 either
> - apply tostring() to non-string "%s" arguments of string.format(), or
> - add a string.format option that applies tostring() to its argument,
> and then performs the usual "%s" action.

I'd like to see the first implemented by having lua_tostring honor
__tostring, and perhaps adding a lua_rawtostring if there is really
demand for it.

--John