lua-users home
lua-l archive

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


On Tue, Aug 5, 2014 at 9:45 AM, Andrew Starks <andrew.starks@trms.com> wrote:
>
> On Tue, Aug 5, 2014 at 11:25 AM, Coda Highland <chighland@gmail.com> wrote:
>>
>> It shouldn't be infinite. When the function call accumulates enough
>> parameters to overflow the stack, it should fail.
>
>
> Oh wait....
>
> Yes. Sorry for the noise. I had the same thought. Tail calls and overflowing
> the argument list are two different things/issues.
>
> So while we have tail calls, this idiom *can* still result in an
> overflow.... if I understand it correctly.
>
> -Andrew

That matches my understanding, yes.

/s/ Adam