lua-users home
lua-l archive

Re: Syntactical ugliness - does it matter?

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


On Wed, 5 Jun 2019 at 15:35, Matthew Wild <mwild1@gmail.com> wrote:
>
> local resource x = foo()
>
> to be interpreted as
> local <toclose> x = foo()
> or
> local resource; x = foo()
>
The former as the latter is impossible.
So if you say:
local resource = 0
Then resource is a variable.
But if you say:
local resource x = 0
Then x is a variable, and resource is a qualifier.
Does that make sense?
Regards

AltStyle によって変換されたページ (->オリジナル) /