lua-users home
lua-l archive

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


Rena <hyperhacker@gmail.com> writes:
> do
>   local f = loadstring("return function(a, b) return a // b end")
>   if f then idiv = f()
>   else idiv = function(a,b) return ifloor(a / b) end
>   end
> end

Hmm, I think I'd prefer math.idiv...  oO;

-miles

-- 
The trouble with most people is that they think with their hopes or
fears or wishes rather than with their minds.  -- Will Durant