comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: Convert an access to constant to access to variable
Date: Sat, 05 Aug 2017 20:41:22 +0300
Date: 2017-08-05T20:41:22+03:00	[thread overview]
Message-ID: <om500e$3iv$1@gioia.aioe.org> (raw)
In-Reply-To: 41be1cc1-7fc3-404f-9593-b7acea3071d5@googlegroups.com

Stephen Leake wrote:

> On Friday, August 4, 2017 at 5:17:26 PM UTC-5, 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".)
> 
> why do you need to do this? Why do you need a variable view of an object,
> if you promise to treat it as a constant?
> 
> I can't think of a good reason.

I need chars_ptr for interfacing with C.

There is no constant_chars_ptr.

(I need to generate chars_ptr from a char_array or rather from constant 
char_array.)

-- 
Victor Porton - http://portonvictor.org


  reply	other threads:[~2017-08-05 17:41 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
2017-08-05 17:27 ` Stephen Leake
2017-08-05 17:41   ` Victor Porton [this message]
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