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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b084786fb95b5938 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Adding Things to Package System Date: 1999/02/20 Message-ID: #1/1 X-Deja-AN: 446375094 Sender: matt@mheaney.ni.net References: <1999Feb18.192159.18832@nosc.mil> <7ai6f5$7hk$1@nnrp1.dejanews.com> <1999Feb20.003952.9906@nosc.mil> NNTP-Posting-Date: Sat, 20 Feb 1999 03:52:06 PDT Newsgroups: comp.lang.ada Date: 1999-02-20T00:00:00+00:00 List-Id: claveman@cod.nosc.mil (Charles H. Sampson) writes: > Package System in both the Green Hills and ObjectAda implementa- > tions contain a declaration similar to > > function "+" (Left : Address, Right : Integer) return Address; > > as well as the commutative variation. Green Hills, which is my vendor, > didn't tell me why they chose to ignore the advice. I have no idea why > ObjectAda did either; they're a colleague's vendor and he doesn't have > time to ask them right now. (He's in typical alligator-fighting mode.) We're using the VADS compiler, and they did something _really_ dumb: function "+" (L : Address; Right : Integer) return Address; function "+" (L : Address; Right : Long_Integer) return Address; So the call Addr := Base_Addr + 16#5000#; is ambiguous! So you have to do this Addr := Base_Addr + Integer'(16#5000#);