lua-users home
lua-l archive

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


On Wed, 5 Jun 2019 at 15:49, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
> How is it a valid statement?
>
> local resource x = 0
>
> is invalid in Lua.

$ cat resource.lua
local resource x = 5
print(resource, x)

$ lua5.3 resource.lua
nil        5

Regards,
Matthew