lua-users home
lua-l archive

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

* On 2009-12-11 Michal Kottman <> 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!