lua-users home
lua-l archive

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

Rena <> 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;


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