Brian Coyner 11/19/2015

Swift Integer Overflow

Read Original

This article details Swift's approach to integer overflow, where standard arithmetic operations crash on overflow. It explains the use of methods like addWithOverflow and subtractWithOverflow, which return a tuple with the result and an overflow flag, covering all integer types and operations.

Swift Integer Overflow

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser