comp.lang.ada
 help / color / mirror / Atom feed
From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: Re: Access type conversions, how?
Date: Wed, 14 Apr 2004 12:07:37 +0000 (UTC)
Date: 2004-04-14T12:07:37+00:00	[thread overview]
Message-ID: <slrnc7qac9.o4.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 407d2686.0@entanet

* Luke Guest wrote:
> "Lutz Donnerhacke" <lutz@iks-jena.de> wrote in message
>> Please use Address_To_Access_Conversion and map the adresses.
>
> Why? Is this a standard function?

ARM95: 13.7.2 The Package System.Address_To_Access_Conversions

>> Or (better) define a variable of the different type at the same location.
>
> I don't know what you mean here.

Mapping two repesentation at the same memory location does not generate any
code, but provide the required access.

>> An example is available in my recent posting here on "Efficient Stream_IO"
>
> Well, I've just looked and I couldn't see any use of that function.

There is no function. Only a variable of a different type mapped to the same
location. You might use "pragma Union(Variable_Record);" on GNAT to get the
same result.



  reply	other threads:[~2004-04-14 12:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-13  0:32 Access type conversions, how? Luke A. Guest
2004-04-13  1:25 ` Randy Brukardt
2004-04-13  8:08   ` Luke A. Guest
2004-04-13 15:11     ` chris
2004-04-13 16:01       ` Luke Guest
2004-04-13 17:54         ` chris
2004-04-13 19:31           ` Luke A. Guest
2004-04-13 22:51             ` Luke A. Guest
2004-04-13 21:59               ` Lutz Donnerhacke
2004-04-14 11:53                 ` Luke Guest
2004-04-14 12:07                   ` Lutz Donnerhacke [this message]
2004-04-14 13:36             ` Robert I. Eachus
2004-04-14 17:37               ` Jeffrey Carter
2004-04-13 14:57 ` zhenglonggen
2004-04-14  7:45   ` Martin Dowie
2004-04-14 11:49     ` Luke Guest
replies disabled

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