lua-users home
lua-l archive

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


On Dec 11, 2009, at 9:26 PM, Gert wrote:

> Is there a way for dynamically loaded code to access local variables within a
> function ?

Alternatively, take a look at setfenv. 

Setting the environment of the loaded chunk before executing it would most likely allow you to achieve what you are after.