[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Definition of table.insert
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 11 Jan 2011 11:45:56 +0200
On Tue, Jan 11, 2011 at 11:08 AM, Axel Kittenberger <axkibe@gmail.com> wrote:
> Or in other words, tables keep to be the basic Lua building block, but
> Lists is a default construct that builds on tables and makes
> insert/remove/# operations easy.
For instance, [1]. Again, you do pay a penalty, but it should be
impossible to put holes in your array with this class. It would be
interesting to find the fastest possible implementation that preserves
the paranoid properties!
steve d.
[1] http://snippets.luacode.org/sputnik.lua?p=snippets/Safe_Array_100