Skip to content

Add wrapping arithmetics operators#6890

Merged
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
bcardiff:feature/amp-int-ops
Sep 29, 2018
Merged

Add wrapping arithmetics operators#6890
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
bcardiff:feature/amp-int-ops

Conversation

@bcardiff
Copy link
Member

This PR adds the semantics to the &+ &- &* operators for integers operands.

After the next release it can be used in the std lib where wrapping semantics is explicitly needed.

Ref: #6223

@bcardiff bcardiff added this to the 0.27.0 milestone Sep 28, 2018
@ysbaddaden ysbaddaden merged commit 07f91d7 into crystal-lang:master Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants