From -7602139298283181171
X-Google-Thread: f78e5,c063db358aabf0d8
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: M.Kronenburg@inter.nl.net ("Maarten Kronenburg")
Newsgroups: comp.std.c++
Subject: Re: Integer division specification
Date: Tue, 20 Feb 2007 20:50:00 GMT
Organization: InterNLnet Usenet News service
Lines: 27
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <45db3f12$0$428$19deed1b@news.inter.NL.net>
References: <n5u5t219ouhheqn399kchuhhrd3jm7er69@4ax.com> <k9odt25148b6olt421jip03kqqbcq4meo1@4ax.com> <45d8adcb$0$7365$19deed1b@news.inter.NL.net> <e16jt2db2qgajj6vdp2ss1g3dcpt7jkj68@4ax.com>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1172004612 397 158.152.254.254 (20 Feb 2007 20:50:12 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 20 Feb 2007 20:50:12 +0000 (UTC)
X-Original-To: std-c++@mailman.ucar.edu
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Priority: 3
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
X-MSMail-Priority: Normal
X-Virus-Check: ClamAV 0.86.2/2613 on emr1.eu.uu.net; Tue, 20 Feb 2007 18:34:03 +0000
X-Received: (from fjh@localhost)
	by mulga.csse.unimelb.edu.au (8.13.8+Sun/8.13.8/Submit) id l1KKo0DK014465;
	Wed, 21 Feb 2007 07:50:00 +1100 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@mailman.ucar.edu
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-Newsgroups: comp.std.c++
Xref: g2news2.google.com comp.std.c++:5652


"Gennaro Prota"  wrote
> Thanks Maarten, I was wondering if they will synchronize with C99,
> which now imposes truncation towards zero. Since there was no reply
> from committee members I think I'll submit the DR with resolutions for
> both cases (though, at this point, synch with C99 looks a bit
> unlikely).
>
Genny,
When I read the other replies personally I would propose in the DR to adopt
the C99 standard (truncation toward zero) and see what opposition exists.
Most programmers want the standard to be as explicit and unambiguous as
possible, and personally I think C++ cannot afford to be ambiguous about
this, and that C++ should adopt what Fortran and C already have, that is
truncation toward zero. A compiler with hardware that has truncation other
than toward zero should then mention that in their documentation.
After all, when -4 / 3 == -2 (instead of -1), while 4 / 3 == 1, then
obviously something strange is going on.
Regards, Maarten.


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



