lua-users home
lua-l archive

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


On Mon, Jun 3, 2019 at 2:43 PM Rodrigo Azevedo wrote:

local & constant = 5
local & catched = 10 -- alternative name, because all 'local' are
lexically 'scoped' and 'toclose' is ugly.



I suggest to replace "toclose" and "__close" with more expressive words:
   local <resource> x = setmetatable(obj, {__release = ...})