Re: use of gettop to change functionality
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: use of gettop to change functionality
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 1 Mar 2011 11:08:35 -0300
> The entire point was not to treat nil and none as the same?
BTW, the idiom for that is to call lua_settop(L,n) at the very start,
for functions that require n arguments. This discards extra arguments
and make sure that absent ones are replaced by nil.