lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
I thought about that. The queue could be resized toghether with the
table, out of the lookup path. But the queue is a regular table, so
the program could add other elements to it and fill the previously
allocated space.

-- Roberto

So is the only solution to make the queue a special datatype? I don't particularly like the solution, but it would mean the queue could be stored as a linked list (using the gc next pointers), which solves the growing problem.

- Alex