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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba0587ecc5989bed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-28 17:58:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Another problem with stream reading. Date: Thu, 28 Mar 2002 10:21:52 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CA0B5C4.2060804@home.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1017328912 22456 136.170.200.133 (28 Mar 2002 15:21:52 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 28 Mar 2002 15:21:52 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:21802 Date: 2002-03-28T15:21:52+00:00 List-Id: Unsigned integers for Ada0y might be interesting, but I'm not sure what you would do with them that you can't already do with modular types. If you need a 32 bit unsigned that doesn't have the base type problem, you can get that with a modular type. Is it that one might want overflow & underflow rather than wraparound semantics? If that's the case, I'd think it would be nice to have numeric types that saturate as well. One of Ada's strengths is that it can describe in detail the exact needs of a given data type. Perhaps adding unsigned integers (and math types that saturate) would add to that strength. Arguing that you can get there from here by just doing blah blah blah is interesting, but not necessarily compelling. Its always nice to have direct language support for a feature that is likely to see a lot of use. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Randy Brukardt" wrote in message news:ua4mt7p1nif778@corp.supernews.com... > > It would be nice if Ada had real unsigned types with checking, etc., but > I brought that up repeatedly during the design of Ada 95, and there was > no support. And that has not changed, so don't expect it to change in > Ada 0y. So we have only modular types if we really need unsigned > behavior. >