[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntactical ugliness - does it matter?
- From: Ryan Ford <ryan@...>
- Date: Wed, 5 Jun 2019 18:34:36 +0800
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"