lua-users home
lua-l archive

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


On Tue, 4 Jun 2019 at 21:24, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
>
> I suggest to replace "toclose" and "__close" with more expressive words:
>    local <resource> x = setmetatable(obj, {__release = ...})
>

+1

Following would work too in my view:

local resource x = setmetatable(obj, {__release = ...})

Regards