lua-users home
lua-l archive

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


If you want C closures to share values, you could store a table as an
upvalue, store your values in there, and set the same table as an
upvalue for the closures.

-Rob

On Fri, 8 Apr 2011 15:05:31 -0400
Patrick Donnelly <batrick@batbytes.com> wrote:

> On Fri, Apr 8, 2011 at 1:46 PM, Anthony Howe <achowe+lua@snert.com>
> wrote:
> > Can Lua 5.1 upvalues be associated with more than one C closure?
> 
> No.
> 

Attachment: signature.asc
Description: PGP signature