[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: loadstring and accessing local variables
- From: Gert <lua@...>
- Date: Fri, 11 Dec 2009 21:52:14 +0100
* On 2009-12-11 Michal Kottman <k0mpjut0r@gmail.com> wrote :
> On Fri, 2009-12-11 at 21:26 +0100, Gert wrote:
> > Hello,
> >
> > Is there a way for dynamically loaded code to access local variables within a
> > function ? What I'm trying to do basically looks like this:
>
> I have tried to achieve the same thing, and basically ended up
> collectiong all the locals and upvalues using functions from debug
> table,
Yes, I was afraid I would end up using the debug library. I just
realized locals are not part of the environment - which would be my
first intuitive guess - but live in registers instead.
Ok, nothing I can do about it then, thanks for your help!