[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Tables as vectors weirdness
- From: "Tom Barta" <tbarta@...>
- Date: Sun, 4 Nov 2007 23:39:53 -0600
On 11/4/07, Javier Guerra <firstname.lastname@example.org> wrote:
> Lua doesn't have 'vectors' as a datatype.
> you might not like it (not everybody's happy with this); but if you're
> surprised, you're looking from the wrong angle.
Unfortunately for many people, the "wrong" way to think about Lua is
the way that nearly all mainstream languages work. 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).