lua-users home
lua-l archive

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


On 11/5/07, Tom Barta <tbarta@gmail.com> wrote:
>I'm curious if
> anyone has created a basic 'array' or 'vector' C module for Lua
> similar to how Python's numeric libraries work (array elements are a
> single contiguous type, rather than polymorphic objects).

That would be the best solution; one must accept Lua tables for what
they are, and write libraries that have the semantics/performance you
need. (e.g v + w meaning the addition of all elements of v and w)

steve d.