lua-users home
lua-l archive

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

> Be careful: to correctly implement tinsert in Lua using the C tinsert you must pass the correct number of parameters to the C
> function, like in
> function tinsert(t, n, v)
> 	if (v) then
> 		%tinsert(t, n, v)
> 	else
> 		%tinsert(t, n)
> 	end
> end

Sorry, I meant that. The version I posted was an incorrect "optimisation"!

-- | perfect, a.  unsatirizable