lua-users home
lua-l archive

Re: "To-be-closed" upvalue cleanup opportunity?

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


> I believe the 'tbc' field of UpVal:
> https://github.com/lua/lua/blob/c954db39241a8b21d7b32b42b87a066b4708f969/lobject.h#L620
> 
> is unnecessary since the to-be-closed variable handling changes starting with
> https://github.com/lua/lua/commit/4e47f81188d37e29027158b76271d02a781242e2 .
> 
> It's only referenced in newupval, which is never called with anything
> but 0 for the value.
That's right. Thanks for the report.
-- Roberto

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