[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: proper tail calls?
- From: Matt Campbell <mattc@...>
- Date: Fri, 10 Mar 2006 18:25:12 -0600
Hello Nathan:
Lua only does a proper tail call if the function ends with a statement
of the form "return func(...)". So in this case, the last line of the
listing function should be 'return listing(const("."))'. I hope this helps.
--
Matt Campbell
Lead Programmer
Serotek Corporation
www.freedombox.info
"The Accessibility Anywhere People"