lua-users home
lua-l archive

Re: just a little question about the lua way :)

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


> 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

AltStyle によって変換されたページ (->オリジナル) /