lua-users home
lua-l archive

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


On Wed, 5 Jun 2019 11:26:55 +0100
Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:

> Following would work too in my view:
> 
> local resource x = setmetatable(obj, {__release = ...})

I'm sure this would break the current syntax though as you would be initializing the local "resource" and assigning a new value to the global "x"