lua-users home
lua-l archive

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


> 1) Metatables are described as part of the language core, but
> getmetatable() and setmetatable() are part of the basic library. What
> can one do with metatables without the basic library?

Not much, actually. Notice that this happens with most features from
the basic library (e.g., set/getfenv, next facility, raw access, error
handling, co-routines, etc.)


> 2) The reference guide lists xpcall() as having 2 args only; does it accept 
> user's args after those, like pcall(), I presume?

No.


> 3) Is the "byte counter" quoted for collectgarbage() the same as the
> "dynamic memory that Lua is using" returned by gcinfo()?

Yes.


> 4) gcinfo() and collectgarbage() memory amounts are expressed in
> "Kbytes". For the sake of SI-correctness :-) must they be interpreted
> as kB (1000 bytes) or as KiB (1024 bytes)?

1024 bytes.

-- Roberto