[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua registry, environment, and threads.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 6 Jan 2010 15:20:46 -0200
> 2010/1/6 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
> >> Does that mean in 5.2, I can't have any per-thread data? It has to
> >> be global to a Lua state or private to a function?
> >
> > Note that in 5.1 the built-in per-thread data is not very useful, as you
> > cannot access it from Lua. (That is the main reason why we are removing
> > it).
>
> Isn't debug.getfenv on a thread object returning it ?
Yes, but remember that "The functions provided [by the debug library]
should be used exclusively for debugging and similar tasks, such
as profiling. Please resist the temptation to use them as a usual
programming tool:"
-- Roberto
- References:
- Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Patrick Donnelly
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Jerome Vuarand