lua-users home
lua-l archive

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

>I want to have some place, where I could store error code per thread/coroutine.
>Eg., each thread has own errno.

There are several options: change the table of globals of each thread,
use a different key in the registry (for instance, the thread itself),
or use an upvalue.