lua-users home
lua-l archive

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


> > As for strings, they're stored in a global table, accessible in one of lua
> > state's fields, called "strt" IIRC; you can easily write a C function to
> > traverse it.
> >
> 
> I would be extremely happy to see at least a function to get the
> actual size in *bytes* of a given object in 5.2. Perhaps in the debug
> library.
> 
> Is such a function possible?

See http://lua-users.org/lists/lua-l/2009-04/msg00030.html but that does not
traverse the string table.