-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Nested for-loops contain an error #37
Comments
skx
added a commit
that referenced
this issue
Sep 30, 2018
This works with arrays of the same time, but not mixed types. For example: // Now sort some ints let a = [ 32, 2, 33, 1, -1 ]; puts( "Original Array: " , string(a), "\n" ); let a = a.sort(); puts( "Sorted Array: " , string(a), "\n" ); // Now sort some strings let a = [ "Steve", "Kemp", "Kirsi" ]; puts( "Original Array: " , string(a), "\n" ); let a = a.sort(); puts( "Sorted Array: " , string(a), "\n" ); This closes #36, but has revealed a new bug in the process, #37.
Simple reproducer - I was correct nested
Sample usage:
Fun bug :) I've seen it before though, this is exactly the same root-cause as : (i.e. "for" should return a value. Doesn't matter what it is. Even nil would do.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code works:
However remove the use of
pass
and it panics. Seems to be the return-value of thefor
looks is causing isseus - suspect it doesn't return a value and it should.The text was updated successfully, but these errors were encountered: