Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicIntroduction While Loop - Scoping Fix #39

Open
mborowczak opened this issue Nov 19, 2018 · 1 comment
Open

BasicIntroduction While Loop - Scoping Fix #39

mborowczak opened this issue Nov 19, 2018 · 1 comment

Comments

@mborowczak
Copy link

t = 0
while t < 5
  println(t)
  t+=1
end

Should become:

t = 0
while t < 5
  println(t)
  global t+=1
end

in order to avoid top-level scope errors.

@ChrisRackauckas
Copy link
Member

thanks for pointing this out. Yeah, I am hoping that this just goes away sooner rather than later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants