lua-users home
lua-l archive

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


On Thu, Jun 11, 2009 at 6:19 PM, Asko Kauppi<askok@dnainternet.net> wrote:
>
> And you cannot override add and sub and mul and... either.   Meaning you
> want userdata.
>
> Case closed?  :))

Thinking about 3D vectors as objects, I'm sure a C++ application would
struggle with lots of tiny objects like that, and it would certainly
cause a lot of allocation churn unless some clever reusing was going
on.  Surely the userdata needed here is an _array_ of 3D vectors, to
efficiently handle the storage and processing of many vectors?

steve d.