From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.8.30 with SMTP id 30mr19397744ioi.129.1502827551230; Tue, 15 Aug 2017 13:05:51 -0700 (PDT) X-Received: by 10.36.68.87 with SMTP id o84mr137747ita.9.1502827551208; Tue, 15 Aug 2017 13:05:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!m34no597362iti.0!news-out.google.com!19ni1017itw.0!nntp.google.com!m34no597352iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 15 Aug 2017 13:05:50 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=204.52.135.186; posting-account=7Oy7OQoAAABhVYFOo553Cn1-AaU-bSfl NNTP-Posting-Host: 204.52.135.186 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <920fe12d-1fae-4864-9409-adf28231164c@googlegroups.com> Subject: Re: Need a way to convert a constant to a variable From: Eryndlia Mavourneen Injection-Date: Tue, 15 Aug 2017 20:05:51 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1740 X-Received-Body-CRC: 2725503752 Xref: news.eternal-september.org comp.lang.ada:47728 Date: 2017-08-15T13:05:50-07:00 List-Id: On Saturday, August 5, 2017 at 8:41:26 AM UTC-5, Victor Porton wrote: > ... > Sometimes one needs to convert a constant view into variable view (I am > fully conscious that after this the programmer should take care not to > change the object of the view). > ... > Victor Porton - http://portonvictor.org Aside from any language-specific issues, I would expect Ada to allocate a c= onstant in a Read-Only program section for the linkage editor. If it does= this and nothing else is done in the linker, then any attempt to write a c= onstant would fail with a hardware exception. -- Eryndlia (KK1T)