From: Oliver Kellogg <olivermkellogg@gmail.com>
Subject: Re: Put the access value
Date: Sat, 18 Apr 2020 08:08:54 -0700 (PDT)
Date: 2020-04-18T08:08:54-07:00 [thread overview]
Message-ID: <f62496ca-9aeb-4544-aa8d-6d5b5cbcd79e@googlegroups.com> (raw)
In-Reply-To: <r73phu$58a$1@dont-email.me>
On Tuesday, April 14, 2020 at 9:42:56 AM UTC+2, J-P. Rosen wrote:
> Le 14/04/2020 à 09:15, ldries46 a écrit :
> > [...]
> In Ada, a pointer is not an integer and has no 'Image attribute. A
> pointer is not an address either. Of course, for debugging you can
> indulge your self to constructs that would be thrown at for long term
> maintenance. So...
>
> 1) Use Unchecked_Conversion to convert it to an appropriate integer type
>
> 2) use package Address_To_Access conversion to convert your pointer to
> an address, then System.Storage_Elements.To_Integer to convert the
> address to Integer_Address, which is an integer type.
There's also the sledgehammer-to-crack-a-nut solution:
https://github.com/persan/auto-io-gen
- Oliver
next prev parent reply other threads:[~2020-04-18 15:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-14 7:15 Put the access value ldries46
2020-04-14 7:42 ` J-P. Rosen
2020-04-18 15:08 ` Oliver Kellogg [this message]
2020-04-20 23:02 ` Robert A Duff
2020-04-21 7:07 ` briot.emmanuel
2020-04-21 22:29 ` Robert A Duff
2020-04-14 11:05 ` Jeffrey R. Carter
2020-04-14 12:09 ` ldries46
2020-04-15 7:20 ` briot.emmanuel
2020-04-15 8:02 ` AdaMagica
2020-04-15 8:51 ` J-P. Rosen
2020-04-15 16:23 ` AdaMagica
2020-04-17 14:20 ` Björn Lundin
2020-04-21 21:06 ` Randy Brukardt
2020-04-22 12:31 ` Björn Lundin
2020-04-22 17:33 ` AdaMagica
2020-04-23 11:37 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox