From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ee1a8b8db84c88f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.germany.com!news.belwue.de!irazu.switch.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada exception block does NOT work? Date: Fri, 19 Aug 2005 19:29:51 +0200 Organization: Cablecom Newsserver Message-ID: <1639727.IzdcfkcRx7@linux1.krischik.com> References: <4301ab29$0$6989$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: 84-72-114-216.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1124473515 12404 84.72.114.216 (19 Aug 2005 17:45:15 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Fri, 19 Aug 2005 17:45:15 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:4197 Date: 2005-08-19T19:29:51+02:00 List-Id: Dr. Adrian Wrigley wrote: > On Thu, 18 Aug 2005 16:56:35 -0400, Robert A Duff wrote: > >> On the third hand, *unsigned* integer arithmetic is wrap-around in C, >> C++, Java, *and* Ada. > > err... doesn't Ada raise exceptions on overflow for unsigned types? > presumably you are talking of Ada's modular types(?) which are > (obviously) wrap-around, exactly as users want from such a type(!) Well, the very first C did not have "unsigned int" there was just int. That's why unix has a 2GB limit on files and not a 4 GB limit. (There is a new set of file IO which can deal with larger files). I think Java is still without "unsigned". And last not least Ada "mod" type in not only unsigned it also has warp around as extra - which you might not actually want. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com