lua-users home
lua-l archive

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


>>>>> "Roberto" == Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:

 >> That said, why have the "tocont" argument rather than doing it
 >> printf-style? i.e. make the signature of the user-supplied warning
 >> function take a va_list, a la vfprintf.

 Roberto> Any suggestion about how to export that to Lua? That is, how
 Roberto> to implementt a "warn(msg1, msg2, ..., msgN)" for Lua with a
 Roberto> single call to such a lua_warn?

Do you need to?

I don't see any strong reason why the Lua warn() should take multiple
parameters, since the caller can always construct their own warning
string.

-- 
Andrew.