lua-users home
lua-l archive

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


on 3/20/06 9:17 AM, Lisa Parratt at lisa@thecommune.org.uk wrote:

>      for index, promise in ipairs(threads) do

Note that ipairs stops at the first nil which would seem to be a problem
from the standpoint of the thread coroutine clearing the entry in the table.
But you could leave it to the scheduler to clear the entry and it could move
everything to keep the table dense.

That does not, however, address the issue of values being cleared because
the threads table is weak.

Mark