lua-users home
lua-l archive

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



On Wed, Mar 3, 2010 at 11:23 AM, Peter Cawley <lua@corsix.org> wrote:

This will yield a stack containing {aFunction, aTable, nil1, ...,
nilN} as settop(2) effectively throws away everything after the first
two elements (technically, settop(2) just marks everything after 2 as
garbage-collectable, and settop(top) puts in the nils - "If the new
top is larger than the old one, then the new elements are filled with
nil").

Ok, good to know that. Thanks!