Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: MSIE integer overflows

From: Luciano Miguel Ferreira Rocha <strange(at)nsk.no-ip.org>
Date: Wed May 14 2003 - 13:10:46 EDT

On Wed, May 14, 2003 at 11:30:44AM +0200, Berend-Jan Wever wrote:
> <snip>
Actually, you misunderstood him.

While ++i and i++ are distinct and perfectly defined, "a = ++i + 2 * --i" isn't. As isn't "printf("%d %d\n", ++i, i++)".

In the second example, what should the compiler execute first? ++i or i++?

I believe C standards advised against that and let it be an undefined behaviour. I don't know about C99, neither javascript.

Regards,
Luciano Rocha

> -- example.js --
Received on Thu May 15 11:28:37 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:39 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library