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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d502cbc6396bf1f X-Google-Attributes: gid103376,public From: "Vincent P. Amiot" Subject: Re: Universal Integer in TO_ADDRESS call Date: 1999/05/30 Message-ID: <01beaa3e$0e05fbc0$9b2bb6c7@alesia>#1/1 X-Deja-AN: 483614729 Content-Transfer-Encoding: 7bit References: <375004b1@news.compd.com> Content-Type: text/plain; charset=ISO-8859-1 Organization: Netcom X-NETCOM-Date: Sat May 29 6:44:58 PM PDT 1999 Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-29T18:44:58-07:00 List-Id: the 'conversion' to universal integer is as follows: Integer'Pos (X) Hope it pulls the trick for you ;-) ... Regards Vincent Amiot / Aonix David Akister wrote in article <375004b1@news.compd.com>... > I am trying to do a TO_ADDRESS type conversion while using XDADA. The two > parameter types supported by the compiler are {universal integer} and > ADDRESS_INT. > > ADDRESS_INT is too short to be used and universal integer relies on the > parameter being a named-number. > > The existing code uses named numbers as constants without types in the > declaration. They of course adopt the universal integer and everything is > fine. > > I need to modify the code and add offsets taken from an array to this value > and the compiler doesn't like it because the parameter is no longer of type > universal-integer. The way I understand it is that universal integer applies > to named-numbers only. Is it possible to declare any array of constants > which will adopt the universal integer type ? Or can anyone help with an > alternative ? > > Any help much appreciated > Dave Akister > > > >