Skip to content

Instantly share code, notes, and snippets.

@bicycle1885
Created December 29, 2014 16:14
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/dbe4ad2e9eed037b0aee to your computer and use it in GitHub Desktop.
Save bicycle1885/dbe4ad2e9eed037b0aee to your computer and use it in GitHub Desktop.
scope leak?
UndefVarError(:x)
x: 10
try
for i in 1:10
x = i
end
println("x: $x")
catch err
println(err)
end
try
for i in 1:10
x = i
end
println("x: $x")
catch err
println(err)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment