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

"Foreach with indices" is broken with Range #759

Closed
nddrylliog opened this Issue Jan 3, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@nddrylliog
Member

nddrylliog commented Jan 3, 2014

Example:

for ((index, element) in 0..10) {
    "list[%d] = %s" printfln(index, element toString())
}

Prints

list[-1] = 0
list[-1] = 1
(etc.)

Instead of:

list[0] = 0
list[1] = 1
(etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment