comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Pointers
Date: Mon, 6 Mar 1995 12:27:55 GMT
Date: 1995-03-06T12:27:55+00:00	[thread overview]
Message-ID: <D50qMK.IMy@world.std.com> (raw)
In-Reply-To: 794482546snz@jonf.demon.co.uk

In article <794482546snz@jonf.demon.co.uk>,
Jon Freeman <Jon@jonf.demon.co.uk> wrote:
>Can anyone tell me if it is possible to read the contents of a specified
>memory location in ada or to read the contents of, say, an integer variable
>stored in a known location?

Declare an integer (or whatever) variable, and then use an
address_clause to tell the compiler where to put it.
Then read it as usual.

Alternatively, you could use the Address_To_Access_Conversions library
unit (of Ada 95).

- Bob



  reply	other threads:[~1995-03-06 12:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-06  9:35 Pointers Jon Freeman
1995-03-06 12:27 ` Robert A Duff [this message]
1995-03-07 12:20 ` Pointers Robert Dewar
     [not found]   ` <3jki04$9bj@theopolis.orl.mmc.com>
1995-03-12 23:02     ` Pointers Robert A Duff
1995-03-13 15:54     ` Pointers Tucker Taft
1995-03-13 20:16 ` Pointers David Kusuda
  -- strict thread matches above, loose matches on Subject: below --
2006-06-01 19:46 pointers Schüle Daniel
2006-06-01 20:10 ` pointers Ludovic Brenta
2006-06-02  4:36 ` pointers Jeffrey R. Carter
replies disabled

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