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

Check .:< ... > for prefix operators on int literals #463

Merged
merged 2 commits into from
Sep 2, 2018

Conversation

ribbon-otter
Copy link
Contributor

This commit goes with issue Rakudo/#2094 on GitHub. In the current release of Rakudo 42.:<-> errors from an overaggressive check to prevent integers from ending with fullstops. This commit checks to confirm that 42.:<-> does equal -42.

The corresponding pull request for Rakudo is #2225.

This commit goes with issue Rakudo/#2094 on GitHub. In the current
release of Rakudo '42.:<->' errors from an overaggressive check to
prevent integers from ending with fullstops. This commit checks to
confirm that '42.:<->' does equal '-42'.
This commit add more in depth testing of issue Rakudo/#2094 on GitHub.
In particular, it checks support of 42.:['-'], 42.:«"-"» and similar
forms.

This commit also switches to eval-lives-ok from just ok to fail
elegantly instead of crashing when the implementation does not support
these alternative forms.
@ribbon-otter
Copy link
Contributor Author

I added some additional tests for alternative forms like 42.:['-'] to this pull request to bring it inline with the updated version of Rakudo's pull request #2225.

@lizmat lizmat merged commit adc2330 into Raku:master Sep 2, 2018
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.

None yet

2 participants