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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: "David Akister" Subject: Re: Universal Integer in TO_ADDRESS call Date: 1999/05/30 Message-ID: <7isc5p$2ql$1@lure.pipex.net>#1/1 X-Deja-AN: 483871988 References: <375004b1@news.compd.com> <01beaa3e$0e05fbc0$9b2bb6c7@alesia> <7iqblm$30j$1@nnrp1.deja.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@uk.uu.net X-Trace: lure.pipex.net 928101369 2901 193.149.84.41 (30 May 1999 21:56:09 GMT) Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom X-MSMail-Priority: Normal Reply-To: "David Akister" NNTP-Posting-Date: 30 May 1999 21:56:09 GMT Newsgroups: comp.lang.ada Date: 1999-05-30T21:56:09+00:00 List-Id: Thanks very much for that chaps. It does seem bizarre that address conversion on this XDADA compiler is limited to an short integer type - which is too small for most applications, and the universal type which loses it universalness (made up word!) when manipulated in any way.... Oh well INTEGER'POS it is then. DEC ADA which is the host compiler is more fun with its UNSIGNED_LONGWORD. Thanks a lot -- David Akister Wellgate Technology Ltd Software Development & Computer Book Specialist Robert Dewar wrote in message news:7iqblm$30j$1@nnrp1.deja.com... > In article <01beaa3e$0e05fbc0$9b2bb6c7@alesia>, > "Vincent P. Amiot" wrote: > > the 'conversion' to universal integer is as follows: > > > > Integer'Pos (X) > > > > Hope it pulls the trick for you ;-) ... > > > > Regards > > > > Vincent Amiot / Aonix > > Right, I missed this possibility, but Vincent is absolutely > right, this should work. It is very peculiar code, hard to > imagine any normal Ada situation where one would want this > conversion, but here it may be just the ticket. Note that > you can do this with any integer type. > > > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't.