lua-users home
lua-l archive

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



On Nov 21, 2003, at 15:21, Dimitris Papavasileiou wrote:

Do upvalues associated with C functions count as references to the values? That is will the collector collect upvalues of a C function if there is no
other reference to them?

Yes and Yes. In terms of garbage collection you can just think of a C function as a little table that has a pointer to the actual C function and entries for the upvalues.

drj