[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Little fun with vararg
- From: Coda Highland <chighland@...>
- Date: Tue, 5 Aug 2014 09:53:59 -0700
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