lua-users home
lua-l archive

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


On Wed, Apr 27, 2011 at 9:53 AM, Anthony Howe <achowe+lua@snert.com> wrote:
> In Lu 5.2 section 8.1 "Threads do not have individual environments. All
> threads share a single fixed environment."  Can a thread still have a
> metatable though?  Section 2.4 claims "Every value in Lua can have a
> metatable.".

good question; but note that also some values in Lua share a single
metatable per type.  for example, all strings share the same
metatable.

-- 
Javier