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 stackoverflow #70

Merged
merged 4 commits into from
Sep 11, 2015
Merged

Conversation

rneatherway
Copy link
Contributor

Should fix #68. Also snuck in a fix for #62 (which might also fix #61). @Krzysztof-Cieslak look alright?

The exception handler in main prevents the recursive function from being
tail-recursive. As a result a StackOverflowException occurs regularly.
main now instead contains a while loop, and a mutable state variable.
attaching the exception information:\n"
+ e.ToString()
Response.error msg
state <- state
Copy link
Member

Choose a reason for hiding this comment

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

Is there any reason for this assignment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, fixed. Thanks.

@Krzysztof-Cieslak
Copy link
Member

Just one comment, generally looks good to me 👍

rneatherway added a commit that referenced this pull request Sep 11, 2015
@rneatherway rneatherway merged commit 10ea05d into ionide:master Sep 11, 2015
@rneatherway rneatherway deleted the fix-stackoverflow branch September 11, 2015 11:24
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.

StackOverflow exception Incorrect Error on Unicode Characters
2 participants