[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: too many results to resume
- From: Patrick Donnelly <batrick@...>
- Date: Thu, 5 May 2011 11:10:33 -0400
On Thu, May 5, 2011 at 11:06 AM, Tony Finch <dot@dotat.at> wrote:
> Patrick Donnelly <batrick@batbytes.com> wrote:
>>
>> A (C) Lua stack cannot exceed LUAI_MAXCSTACK (8000). You passed too
>> many results to coroutine.resume:
>>
>> > t = {}; for i = 1, 8000 do t[i] = 1 end
>> > coroutine.resume(coroutine.create(function() end), unpack(t))
>> stdin:1: too many results to unpack
>
> That isn't quite the right error message, but this is:
>
>> t = {}; for i = 1, 7999 do t[i] = 1 end
>> coroutine.resume(coroutine.create(function() return unpack(t) end))
> stdin:1: too many results to resume
> stack traceback:
> [C]: in function 'resume'
> stdin:1: in main chunk
> [C]: ?
Oops, thanks :).
--
- Patrick Donnelly