[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Next Version of Lua?
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 11 Jun 2009 18:29:20 +0200
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.