[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: updated gdbm library
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 6 Nov 2003 09:46:52 -0200
>now that the metatable stuff is in lgdbm.c, what is the reason to still set
>gdbm.metatable in lgdbm.c (since it isn't used in gdbm.lua anymore) ?
To get access to it without having to have a gdbm handle. Or to test whether
a given userdata is a gdbm handle:
function isgdbm(x) return getmetatable(x)==gdbm.metatable end
--lhf