Skip to content

Instantly share code, notes, and snippets.

@ahkok
Created February 16, 2018 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahkok/164a675dfe60e0ff4cf703d5922812d9 to your computer and use it in GitHub Desktop.
Save ahkok/164a675dfe60e0ff4cf703d5922812d9 to your computer and use it in GitHub Desktop.
local a = 1
local function foo1()
print("outer", a)
local function foo2()
print("inner", a)
end
foo2()
a = 2
foo2()
end
foo1()
a = 3
foo1()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment