[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Little fun with vararg
- From: Sean Conner <sean@...>
- Date: Mon, 4 Aug 2014 20:39:39 -0400
It was thus said that the Great Tom N Harris once stated:
> On Monday, August 04, 2014 11:58:07 AM Jay Carlson wrote:
> > is difficult to require to be a tail call, since the return values stack
> > will exhaust all memory regardless of whether activation records do.
>
> Certainly. However since Lua allows ... you'd encounter the same problem with
> this
>
> function F(...)
> return F(x, ...)
> end
I don't know. This
x = 5
function F(...)
return F(x,...)
end
print(F())
is taking an awful long time to fail.
-spc