lua-users home
lua-l archive

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


> >2 - if its value is a table/userdata, its __close (or some other new
> >name) metamethod, if present, is called.
> What's the problem with the __gc metamethod?

As it was discussed here, you may not want to allow users to call __gc
directly. It does not seem too complex to use a diferent metamethod, and
it is simple to do __close=__gc if you want.

-- Roberto