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

Counter Loop variables passed to Functions do not change. #47

Closed
mykeels opened this issue Dec 14, 2018 · 1 comment
Closed

Counter Loop variables passed to Functions do not change. #47

mykeels opened this issue Dec 14, 2018 · 1 comment

Comments

@mykeels
Copy link
Contributor

mykeels commented Dec 14, 2018

Describe the bug
When a loop's counter variable is passed to a function, the first value passed becomes the value for all subsequent passes.

To Reproduce
Run the following code:

ise output (i) {
    sọpé i;
}

fún (jeki i = 1; i <= 3; jeki i = i + 1;) {
    output(i);
}

prints out

1
1
1

Expected behavior
The actual values get passed to the function, so it prints out

1
2
3
@anoniscoding
Copy link
Owner

Thanks bro, found the bug. Will be making a PR to close the issue. More catches in the future

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