comp.lang.ada
 help / color / mirror / Atom feed
From: "Vincent P. Amiot" <godzilla@mozilla.com>
Subject: Re: Universal Integer in TO_ADDRESS call
Date: 1999/05/30
Date: 1999-05-29T18:44:58-07:00	[thread overview]
Message-ID: <01beaa3e$0e05fbc0$9b2bb6c7@alesia> (raw)
In-Reply-To: 375004b1@news.compd.com

the 'conversion' to universal integer is as follows:

	Integer'Pos (X)

Hope it pulls the trick for you ;-) ...

Regards

Vincent Amiot / Aonix
David Akister <dakister@compd.com> 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
> 
> 
> 
> 




  parent 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 [this message]
1999-05-30  0:00   ` Robert Dewar
1999-05-30  0:00     ` David Akister
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