lua-users home
lua-l archive

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


hi

On Mon, Nov 02, 2009 at 09:15:03AM -0500, Leo Razoumov wrote:
> Also I am a bit worried about function dispatch. Adding two doubles is
> a native Lua opcode and it does not go through the trouble of
> metamethods. Using __add, __mul, etc metamethods dispatch for complex
> numbers is slow. Could it be avoided?

Hmm, I reckon where you want fast complex numbers,
you might prefer a VM with complex as the basic numeric type?
After all others are just special cases.


cheers