lua-users home
lua-l archive

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


> the original binding (from yours) is using static variables, so ...

Right, but it's just 

static int DIGITS=0;
static lua_State *LL=NULL;

The first one is does affect separate computations. I was lazy, yes.
But the second one is for error handling only and it should work even
for multiple states because LL is set when a MAPM computation starts,
before control is returned to Lua.