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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How do I write directly to a memory address? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <8r86vgFc3uU1@mid.individual.net> Date: Sun, 6 Feb 2011 21:01:47 +0100 Message-ID: <19fh1chm74f9.11cws0j5bckze.dlg@40tude.net> NNTP-Posting-Date: 06 Feb 2011 21:01:46 CET NNTP-Posting-Host: 7f880f1d.newsspool4.arcor-online.net X-Trace: DXC=O2M4m`I>JhXI?44J>Z[:RQ4IUK On Sun, 6 Feb 2011 19:05:58 +0000 (UTC), Simon Clubley wrote: > I suspect I am not the first person whose current coding style reflects > lessons learnt from using older compilers while those problems have > subsequently been fixed in later standards. :-) The funniest C compiler I met was under Sys.V. It modified the format string passed to printf. The string was actually restored when formatting was done. Alas, the very same compiler stored string literals in the read-only memory segment! Immutable scalar arguments still ire mutable within C and C++ subprograms. Great ideas never die... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de