lua-users home
lua-l archive

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


>From: Dan Marks <dmarks@dionysus.phs.uiuc.edu>
>
>Is it possible to use the lua dictionary mechanism to keep a data
>space that is separate from the global variables in lua?  I would like
>to create a separate variable namespace that is accessible from
>several currently running lua threads.  To do this, I wanted to create
>a new kind of lua_tag that would have the settable/gettable redefined
>to retrieve the objects from this new table, so that many lua instances
>could retrieve this data from the same namespace.

sure, but it will be cleaner if you use set/getlobal to redirect "global"
variable access to tables.
--lhf