lua-users home
lua-l archive

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


> In my experience, Lua with a 32-bit integer core is covering 95+% of
> our needs. However, sometimes you just need to represent something
> that is larger (file/disk sizes, traffic counters, ...) or you need
> non-integer arithmetic. Using userdata in these cases is just awkward.

Why is it awkward? I se that creating an object is a bit awkward, as in
	one = real(1)
	half = real(1,2)	-- 1/2
but from then on the metamethods should make it transparent:
	x = (r+2/r)/2
Am I missing something?