[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting the callers environment in c
- From: Sam Roberts <vieuxtech@...>
- Date: Tue, 8 Mar 2011 11:26:01 -0800
On Tue, Mar 8, 2011 at 9:23 AM, Chris Gagnon <email@example.com> wrote:
>> 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.
It sounded like your env is specific to a function? Use a
lightuserdata of the function pointer as the registry key to
store/lookup the env in the registry.