[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question on <close>
- From: Ryan Ford <ryan@...>
- Date: Sat, 16 May 2020 11:40:55 +0800
> When a variable holds a value which has a metatable where __close is not
> nil then when the variable goes out of scope that value is closed
>
> That would make the postfix attribute <close> redundant
>
> But I am sure I am missing something. Can someone clarify why there is the
> need for <close>?
I believe explicitly declaring a variable is <close>, saves from having to check every single variable for a __toclose metamethod.
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org