[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: omission in lua_yield docs
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 27 May 2012 16:29:23 -0300
> I think it would still be helpful to clarify this in the yield docs,
> as is done e.g. for lua_error.
The docs states this:
This function should only be called as the return expression of a C
function, as follows:
return lua_yieldk (L, n, i, k);
Therefore, its return value (or whether it returns at all) is irrelevant;
your code will never see it.