lua-users home
lua-l archive

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


If I understand correctly what you mean by detail (details are often
"tricky devils" in programming :) ), then you propose quite the way
how e. g. the file meta does this in iolib.c (see f_close and f_gc).

I think this is done there quite as you propose it here, and adhering
to such "internal Lua close/gc handling" will for sure make very much
sense - the file meta is a nice Lua example how to design a meta I
think... .