Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Overflow, integers and strings Date: Tue, 05 May 2015 23:54:13 +0200 Organization: solani.org Lines: 24 Message-ID: References: <1997740.h7VUlrh2Em@PointedEars.de> <72e44d34-7f4d-4d32-8304-e73688132274@googlegroups.com> <3770518e-e91f-4368-9a69-cbd2f2461343@googlegroups.com> <87lhh5zmuy.fsf@bsb.me.uk> <9e56ec52-91b5-4e3e-9206-fd970fa69254@googlegroups.com> <2a1bdab8-bc0e-4a82-bce5-37c151ba4b47@googlegroups.com> <87zj5kebta.fsf@bsb.me.uk> <87oam0e7t7.fsf@bsb.me.uk> <1a007e67-3a14-424d-b480-c2d909c1f553@googlegroups.com> <87d22ge76i.fsf@bsb.me.uk> <3644640.NRzihMUj1S@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1430862849 3801 eJwVysERACEIA8CakCRIOQrYfwk3t++ly1QBUeDjUzZO+wBWY7qxtUp4yc0VmTYz3uf/4Zj7ARVAEL8= (5 May 2015 21:54:09 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 5 May 2015 21:54:09 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-User-ID: eJwFwYEBwDAEBMCVRPCMo+L3H6F3fuPEwMLDnE6+pXSpidpWKoqU89r27jJbMIXJSdTHHvwrgxHc In-Reply-To: <3644640.NRzihMUj1S@PointedEars.de> Cancel-Lock: sha1:X7UYlrzGGDox1LYqPVNi/M/TtI0= X-NNTP-Posting-Host: eJwVx8ERwDAIA7CVIGBMx0kh7D9C2tNLsNAoeiAc81u5NshKtX7eo6pbiiYzlO483cUvcAhtLhj4ETI= Xref: csiph.com comp.lang.javascript:27540 Thomas 'PointedEars' Lahn wrote: > Christoph M. Becker wrote: > >> Evertjan. wrote: >>> In Javascript 2^32 comes to mind, in which case you can use much of the >>> internal engine. >> >> Consider that conforming ES implementations are not required to do any >> integer arithmetic. > > Untrue. Read, for example, > pp. and find the > operations that use them. Of course, you're right. I meant to refer to the basic arithmethic operations, i.e. the multiplicative[1] and additive[2] operators, which do not involve ToInteger operations. [1] [2] -- Christoph M. Becker