[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Getting the callers environment in c
- From: liam mail <liam.list@...>
- Date: Tue, 8 Mar 2011 19:30:17 +0000
On 8 March 2011 19:26, Sam Roberts <email@example.com>
It sounded like your env is specific to a function? Use a
On Tue, Mar 8, 2011 at 9:23 AM, Chris Gagnon <firstname.lastname@example.org
>> 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.
Just a note to say that a function pointer and void pointer have no guarantees to be the same size.