This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The utility of standard's semantics for overflow


On Wed, Jun 29, 2005 at 02:12:40PM +0100, Dave Korn wrote:
>   In fact, doesn't this suggest that in _most_ circumstances, *saturation*
> would be the best behaviour?

No, you'd be killing most emulators and a lot of virtual machine
implementations.

  char x = (char)((unsigned char)y + (unsigned char)z)

is too ugly to live.

  OG.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]