lua-users home
lua-l archive

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

> Thanks. I think this solves my problem. Am I right in thinking that I
> should avoid requiring any C-modules in a coroutine? That would not be a
> hardship.

There is no problem requiring C modules in coroutines. The CLIBS is
attached to the registry, which is a global structure. Only when the
entire Lua state is closed that it will be collected.

-- Roberto