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

Bug: array iterator problem in for..in loop #112

Closed
ntwrick opened this Issue Jan 11, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@ntwrick
Copy link
Contributor

ntwrick commented Jan 11, 2019

After the first use of an array in a for..in loop, the iterator seems to be stuck at the end of the array (forever).

⧐  a = [1,2,3]
⧐  for i in a {echo(i)}
1
2
3
⧐  for i in a {echo(i)}
⧐  for i in [a] {echo(i)}
[1, 2, 3]
⧐  for i in a {echo(i)}
⧐  a
[1, 2, 3]
⧐  b = a
⧐  for i in b {echo(i)}
⧐  b
[1, 2, 3]
@odino

This comment has been minimized.

Copy link
Collaborator

odino commented Jan 12, 2019

Good catch! Going to have a look at this soon!

@odino odino added the bug label Jan 12, 2019

@odino odino added this to the 1.0 milestone Jan 12, 2019

@odino

This comment has been minimized.

Copy link
Collaborator

odino commented Jan 12, 2019

@ntwrick this should be fixed by #114

Attaching a bunch of fresh builds. Do you mind trying this out just to confirm stuff works as expected now? Let me know if your platform is not in the one I just managed to build, I can draft a quick release with all the supported platforms.

builds.zip

@ntwrick

This comment has been minimized.

Copy link
Contributor Author

ntwrick commented Jan 12, 2019

Confirmed working with linux-amd64.
Could also use a build for linux-arm for RPi.
Thanks,
Rick

@odino odino closed this in ac46992 Jan 12, 2019

odino added a commit that referenced this issue Jan 12, 2019

@odino

This comment has been minimized.

Copy link
Collaborator

odino commented Jan 12, 2019

Thanks!

@odino odino modified the milestones: 1.0, preview-4 Jan 22, 2019

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