lua-users home
lua-l archive

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


On Tue, Aug 23, 2005 at 04:44:55PM -0400, William Trenker wrote:
> But am I missing something?
yup
> Is there a built-in, design-intended way
> of introspecting table names (and, for that matter, function names)?
of course not

a "name" is not a property of a table.
it could be referred to be multiple named slot even in the same
environment:
a={} b=a -- same table
by a numbered slot
c={{}} -- c[1] is a table
or by no slot at all
local d={} -- there is no d in the bytecode


salud