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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6f130eea077b8f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-22 13:07:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: 'Write attribute vs Write procedure. Date: 22 May 2003 21:07:08 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <7vk7ck7iwc.fsf@vlinux.voxelvision.no> <254c16a.0305220549.46d04635@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1053634062 10668 62.49.19.209 (22 May 2003 20:07:42 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 22 May 2003 20:07:42 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:37658 Date: 2003-05-22T21:07:08+01:00 List-Id: mcq95@earthlink.net (Marc A. Criley) writes: > Simon Wright wrote in message news:... > > > I'm not sure whether an implementation has licence to produce code > > which works "as if" this happened. What about the exceptional cases? > > (where there isn't enough room in the stream for all the elements, for > > example). > > According to Robert Dewar, compilers do have such "as if" license: > > "Remember that a compiler is always allowed to treat a language > definition 'as-if', which means that any generated code that makes a > compiler run the code the same way as some other way is equivalent. " > Posted 9/11/97 in comp.lang.ada. > > (If you want to see the whole context of the post, do a Google groups > search in comp.lang.ada with keywords: Dewar "as if" "no semantic > effect" > The thread is titled "The Red Language". I didn't include the URL > because it's quite long and unwieldy. I meant to say, it isn't clear that a failure due to overrun when writing as a blob will have the same external effect as writing individual elements; and I'm not sure whether the "as if" permission includes "unless an exceptional condition occurs, in which case you are allowed to behave differently".