lua-users home
lua-l archive

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


Thanks for the fast replies guys! My next question then is, what happens when a chunk makes a tail call? 

I get something like

========= CALL STACK ============
Function 0: factorial() @../../scripts/factorial.lua, line: 11
===== END CALL STACK ============

Where main() -- the main chunk -- made a tail call to factorial(). Why is it that I don't see 

-------------------------------
Function 1: made tail call so its info is erased by Lua.
-------------------------------

As was the case with the previous example?

Tai