[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: just a little question about the lua way :)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 14 Dec 2005 15:51:58 -0200
> return (not b) and (a or 0) or sumofn(a+b,...) -- proper tail call
This is not a tail call (in Lua). The number of results must be adjusted
to one before returning...
-- Roberto