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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7728b533f7ab5fb6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Avoiding side effects Date: Tue, 07 Oct 2008 15:24:13 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net VlVrsHpuOSjKCdhOI/7Ihwtm+YUekku53v+tdgB6EtM187hBVH Cancel-Lock: sha1:KqwKWvf73AoeiR4dwCL6+MvWW/c= User-Agent: Microsoft-Entourage/12.12.0.080729 Thread-Topic: Avoiding side effects Thread-Index: AckoiF7s2qcEhCtki0mjqFRImDn+kw== Xref: g2news1.google.com comp.lang.ada:2263 Date: 2008-10-07T15:24:13+01:00 List-Id: On 07/10/2008 12:08, in article wvbrfxn8hdc7.fsf@sun.com, "Ole-Hjalmar Kristensen" wrote: > Yes, I think any program which use a read/write interface to a file > will have side effects in that sense. The only way I can think of for > avoiding this would be to mmap the whole file, then it will appear as > an array of bytes. Why would stepping through an array not be thought a "side" effect? -- Bill Findlay chez blueyonder.co.uk