lua-users home
lua-l archive

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

On Fri, May 11, 2012 at 1:19 PM, liam mail <> wrote:
>>> Seems conflicting to me, as the newthread only creates a thread, but still
>>> returns a lua_State. Is then the lua_State description outdated?
>> lua_State points to threads and threads point to the global state, so
>> a lua_State indirectly points to the global state. We will try to
>> clarify that in the manual.
>> -- Roberto
> Isn't that an implementation detail and irrelevant seeing as a
> lua_State is a nice opaque data structure?

It may be opaque but there's still a relationship between them that
needs documented.

/s/ Adam