Skip to content

Instantly share code, notes, and snippets.

@bicycle1885
Created April 18, 2022 08:29
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 bicycle1885/cfdd3b57ae9e839d7fa818517e7ede6d to your computer and use it in GitHub Desktop.
Save bicycle1885/cfdd3b57ae9e839d7fa818517e7ede6d to your computer and use it in GitHub Desktop.
function f1()
function g()
x = 1
return () -> x
end
x = 0
h = g()
return h()
end
function f2()
function g()
x = 1
return () -> x
end
h = g()
x = 0
return h()
end
@show f1() f2()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment