Re: just a little question about the lua way :)
[
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: 2005年12月14日 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