[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: loadstring and accessing local variables
- From: Petite Abeille <petite_abeille@...>
- Date: Fri, 11 Dec 2009 21:30:18 +0100
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.