-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conditional diverts are not properly handled with whitespace #71
Comments
I'm almost certain there is something buggy with this code, but it fixes it for me:
|
At first: thank you for figuring that out The problem you identified sounds reasonable. |
Yeah the double ID was not god ^^ but the problem was primarily that the output stream was not |
As mentioned in #71 the output can sometimes in a saved state when finishing the line. Since the save state is necessary for to re-role the state in a case of a glue. It should not prevent the output from printing in its current state.
Solved in #72 |
When running the following ink, "This displays first" is not displayed:
However, if you remove the space in the line
{opts < 2: -> opts}
between the colon and the divert arrow, then it displays correctly.EDIT: I've been debugging this and I think it has to do with the order of the enum values in
ink::runtime::internal::value_type
.value_type::value_pointer
andvalue_type::marker
have the same value. Unfortunately, I'm not well versed enough in C++ to tell what the real solution should be. If I can get a little guidance I could probably submit a PR.The text was updated successfully, but these errors were encountered: