lua-users home
lua-l archive

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


> On 11 Nov 2015, at 16:49, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> 
>> I'd suggest to add to 'luaL_optlstring's doc something like:
>> 
>> "If l is not NULL, fills the position *l with the result's length *** or 0 if the result is NULL *** ."
> 
> Do you need that?

Not actually, though it seemed a sensible behavior to rely on. But after Nagaev's post I realised it is not the only sensible thing to do. So it does make sense to leave the contents of 'sz' undefined for the NULL case. So, sorry for the noise.

--
Renato Maia