lua-users home
lua-l archive

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


Hallo Edgar,

> Afaics, it's totally unnecessary.  Every userdata you push via
> pushrawuserdata has a luaL_ref.  Just use it to push the userdata
> back onto the stack: lua_rawgeti(L, LUA_REGISTRYINDEX, matrix->ref).
> Then you can also remove all the udata<->matrix conversions;  use
> Matrix-ptrs everywhere.

Thanks very much for the great suggestion. As I said, I am very green. :)
I'll keep polishing the lib, and adding more numerical stuff.

Cheers,
Luis.

-- 
Mathematicians practice absolute freedom.
                -- Henry Adams

-- 
Luis Carvalho
Applied Math PhD Student - Brown University
PGP Key: E820854A <carvalho@dam.brown.edu>

Attachment: pgp3R3S53k0F0.pgp
Description: PGP signature