lua-users home
lua-l archive

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


In message <443B7533.1060608@gimp.org> you wrote:

> Gavin Wraith wrote:
> >> Is userdata (boxed 32-bit unsigned ints, yay!) too slow or too 
> >> cumbersome for your requirements?
> > 
> > Yes. 98% of my arithmetic usage is integer. I would rather not have
> > the tail wag the dog.
> 
> Well, okay, don't have the tail wag the dog - use an integer
> luanumber type and just use userdata for the float maths.

Yes, I think that is the best solution. When I used the mapm
library to provide bignums that was in effect what I was doing.

-- 
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/