|
On 1-Sep-05, at 12:01 PM, David Given wrote:
function process(item1, item2, ...) dosomethingwith(item1, item2) return process(...) end
will I end up with the parameter list duplicated lots of times on the stack?
In this case, no, because it's a tailcall. (However, the parameter list will be copied twice in the course of setting up the tailcall, I believe.)
If it were not a tailcall, you would end up with the duplication on the stack.