lua-users home
lua-l archive

Re: Userdata and GC activity

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


> > I usually remove the metatable from userdata objects that have been closed
> > explicitly instead of storing NULL and checking.
> 
> Isn't that making the error message unclear if you later access the userdata ?
Yes, a little, but I don't think it's (too) confusing. Tastes vary, of course.

AltStyle によって変換されたページ (->オリジナル) /