RE: Confused about proper tail calls
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: RE: Confused about proper tail calls
- From: "Tai Meng" <tmeng@...>
- Date: 2003年9月29日 17:52:17 -0700
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