[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: self copying functions
- From: Sam Roberts <sroberts@...>
- Date: Fri, 16 Mar 2007 10:12:28 -0700
On Thu, Mar 15, 2007 at 05:02:25PM -0700, Graham Wakefield wrote:
> >So I guess for his purpose, some sort of lower-level copy would be
> >necessary.
> >
> >-miles
>
> Exactly.
>
> Upvalues should be duplicated along with the function.
Look at chapter 4 of the lua reference manual.
I think you can get/set upvalues of a c closure, but you can't get/set
locals of a lua closure (if its not currently active).
Even once you access the upvalue, duplicating it is not so easy in the
general case, you might have to do a deep copy of a table.
Sam
- References:
- Re: Colon Operator: Superfluous Syntax?, David Haley
- Re: Colon Operator: Superfluous Syntax?, Brian Hagerty
- Re: Colon Operator: Superfluous Syntax?, Kein-Hong Man
- Re: Colon Operator: Superfluous Syntax?, Brian Hagerty
- Re: self (was Colon Operator: Superfluous Syntax?), Graham Wakefield
- Re: self (was Colon Operator: Superfluous Syntax?), Graham Wakefield
- Re: self, Miles Bader
- Re: self copying functions, Sam Roberts
- Re: self copying functions, Miles Bader
- Re: self copying functions, Graham Wakefield