[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (alpha-rc1) now available
- From: Andrew Gierth <andrew@...>
- Date: Fri, 31 May 2019 20:43:33 +0100
>>>>> "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.