Created
February 16, 2018 20:48
-
-
Save ahkok/164a675dfe60e0ff4cf703d5922812d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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