lua-users home
lua-l archive

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


I just failed when exec following scripts:
maybe some problems here? or I'm using it in a wrong way?

dofile("bint.lua")

local a = bigint(100)
local i

for i = 1, 10 do
	a = a * a
end

print(a)


On Thu, Apr 22, 2010 at 12:51 PM, Ted Unangst <ted.unangst@gmail.com> wrote:
> I ported (as in rewrote) a C bigint library to Lua.  It only covers
> the basics, but it's written in pure Lua, no C binding, and it's
> fairly quick.  I figured it may be useful to someone if you want to
> avoid external dependencies.  I think it works, but was still fixing
> bugs recently, so user beware.
>
> Lua code here: http://bitbucket.org/tedu/bigintlua/src/tip/bigint.lua
>
> C original from here: http://www.acme.com/software/bigint/
>