lua-users home
lua-l archive

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


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