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

incorrect nested loop expression #238

Closed
clkao opened this Issue Dec 25, 2012 · 2 comments

Comments

Projects
None yet
4 participants
@clkao
Contributor

clkao commented Dec 25, 2012

res = for i in [1 to 10]
  [x] = [ z for z in [1 to 2] ]
  x + i

this returns an array of array, while the inner loop was just for looking something up rather than constructing another level of nested loops.

@gkz gkz closed this in 309e87f Dec 25, 2012

@satyr

This comment has been minimized.

Contributor

satyr commented Dec 26, 2012

What about:

res = for i to 9
  while 0 => while 0 =>  
  i

@gkz gkz reopened this Jan 12, 2013

@gkz gkz closed this in 88910ee Jan 13, 2013

gkz added a commit that referenced this issue Jan 13, 2013

Merge pull request #255 from Nami-Doc/issue238
fix #238 - only check loop last element

@vendethiel vendethiel reopened this Jul 31, 2013

@vendethiel

This comment has been minimized.

Contributor

vendethiel commented Jul 31, 2013

reopening since it's still broken (a bit "deeper", but it indeed needs to work like makeReturn)

gkz added a commit that referenced this issue Apr 15, 2015

@gkz gkz closed this Apr 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment