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.7 required=5.0 tests=BAYES_00,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,72d0d0a56877b2ed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-26 19:39:54 PST Newsgroups: comp.lang.ada Path: bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!lazrus.cca.rockwell.com!fms0.cca.rockwell.com!wemagor From: wemagor@fms0.cca.rockwell.com (Wayne Magor) Subject: Re: Ada83 or DEC Ada: Feature or bug? Message-ID: Sender: news@lazrus.cca.rockwell.com Nntp-Posting-Host: fms31.cca.rockwell.com Reply-To: wemagor@fms0.cca.rockwell.com (Wayne Magor) Organization: Rockwell International X-Newsreader: mxrn 6.18-4 References: <360ecv$kq1@hacker.demon.co.uk> Date: Mon, 26 Sep 1994 23:38:18 GMT Date: 1994-09-26T23:38:18+00:00 List-Id: In article <360ecv$kq1@hacker.demon.co.uk>, steve@hacker.demon.co.uk (Stephen M. Youndt) writes: > >Is it a feature of Ada83 or DEC Ada that makes it impossible to work with >unsigned values? MAX_INT always bites back with CONSTRAINT_ERROR when I try >to do any real work with unsigned 32bit values (i.e. SYSTEM.UNSIGNED_LONGWORD). >Both I and my coworkers find this terribly annoying. Is this part of Ada83 >or a DEC Ada peculiarity? If Ada83, will it be fixed in 9X? This was a problem with Ada83 which is fixed in Ada-9X. DEC defined System.Unsigned_Longword like this: type UNSIGNED_LONGWORD is range -2_147_483_648 .. 2_147_483_647; for UNSIGNED_LONGWORD'SIZE use 32; whereas they defined System.Unsigned_Word like this: type UNSIGNED_WORD is range 0 .. 65535; for UNSIGNED_WORD'SIZE use 16; You can't really use Unsigned_Longword for much of anything except to interface to other routines. Wayne.