Re: Tables as vectors weirdness
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Tables as vectors weirdness
 
- From: "steve donovan" <steve.j.donovan@...>
 
- Date: Mon, 5 Nov 2007 08:35:00 +0200
 
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.