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

fix #12740 #12774

Merged
merged 4 commits into from
Dec 4, 2019
Merged

fix #12740 #12774

merged 4 commits into from
Dec 4, 2019

Conversation

krux02
Copy link
Contributor

@krux02 krux02 commented Nov 29, 2019

No description provided.

discard """
output: '''
var data = @["one", "two"]
for (i, d) = in pairs(data):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

equals sign = should not be here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like gfor() needs to be update to handle tuple unpacking directly instead of relying on gsub()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh year, good catch. I was blind about that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cooldome I thought so as well, but tuples can be recursive. I implement a different hack now.

@krux02

This comment has been minimized.

@krux02 krux02 requested a review from cooldome November 30, 2019 10:07
@cooldome cooldome merged commit b0c06aa into nim-lang:devel Dec 4, 2019
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

Successfully merging this pull request may close these issues.

2 participants