From: Victor Porton <porton@narod.ru>
Subject: Re: Convert an access to constant to access to variable
Date: Sat, 05 Aug 2017 04:37:14 +0300
Date: 2017-08-05T04:37:14+03:00 [thread overview]
Message-ID: <om37g8$1lgr$1@gioia.aioe.org> (raw)
In-Reply-To: om2rph$18jt$1@gioia.aioe.org
Victor Porton wrote:
> What is the proper way to convert an access to constant to access to
> variable? (Yes, I know that then I need to be careful not to modify this
> "variable".)
>
> Maybe Unchecked_Conversion?
>
> But:
>
> 1. Is Unchecked_Conversion guaranteed by the standard to work well in this
> case?
>
> 2. Is there a simpler way than Unchecked_Conversion?
Maybe like this:
------------
X: constant T;
Y: T;
for Y'Address use X'Address;
------------
The representations of X and Y are guaranteed to be the same by the
standard, aren't them?
--
Victor Porton - http://portonvictor.org
next prev parent reply other threads:[~2017-08-05 1:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 22:17 Convert an access to constant to access to variable Victor Porton
2017-08-05 0:26 ` Randy Brukardt
2017-08-05 1:00 ` Victor Porton
2017-08-07 23:21 ` Randy Brukardt
2017-08-05 1:37 ` Victor Porton [this message]
2017-08-05 17:27 ` Stephen Leake
2017-08-05 17:41 ` Victor Porton
2017-08-07 23:16 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox