comp.lang.ada
 help / color / mirror / Atom feed
From: "David Akister" <wellgate@dial.pipex.com>
Subject: Re: Universal Integer in TO_ADDRESS call
Date: 1999/05/30
Date: 1999-05-30T21:56:09+00:00	[thread overview]
Message-ID: <7isc5p$2ql$1@lure.pipex.net> (raw)
In-Reply-To: 7iqblm$30j$1@nnrp1.deja.com

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 <robert_dewar@my-deja.com> wrote in message
news:7iqblm$30j$1@nnrp1.deja.com...
> In article <01beaa3e$0e05fbc0$9b2bb6c7@alesia>,
>   "Vincent P. Amiot" <godzilla@mozilla.com> 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.






  reply	other threads:[~1999-05-30  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-29  0:00 Universal Integer in TO_ADDRESS call David Akister
1999-05-29  0:00 ` Robert Dewar
1999-05-30  0:00 ` Vincent P. Amiot
1999-05-30  0:00   ` Robert Dewar
1999-05-30  0:00     ` David Akister [this message]
1999-05-31  0:00       ` Robert Dewar
1999-06-06  0:00 ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox