[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting the callers environment in c
- From: Chris Gagnon <cgagnon@...>
- Date: Tue, 8 Mar 2011 18:02:33 -0800
On Tue, Mar 8, 2011 at 11:26 AM, Sam Roberts <firstname.lastname@example.org>
It sounded like your env is specific to a function? Use a
On Tue, Mar 8, 2011 at 9:23 AM, Chris Gagnon <email@example.com
>> store a pointer to your environment in the registry
> How does this even work, there are many environments and only one registry.
> I would not know which one was used by the calling code.
lightuserdata of the function pointer as the registry key to
store/lookup the env in the registry.
There are many environment tables (a sandbox for each script, which may have many functions) and one globally registered utility function in c.
In the globally registered utility function i need the environment to get at the ID.
I don't have any data to look up the environment with.