lua-users home
lua-l archive

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


Currently threads don't have a metatable:

Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
> co = coroutine.create(function() print"test" end)
> co:resume()
stdin:1: attempt to index a thread value (global 'co')
stack traceback:
    stdin:1: in main chunk
    [C]: in ?

Can we get a thread metatable?

--
Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.