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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b2dd3ff35d68d825 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-10 05:24:04 PST Path: archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Unchecked_Deallocation subtleties Date: Thu, 10 Apr 2003 08:02:49 -0400 Organization: MindSpring Enterprises Message-ID: References: <87smssj94u.fsf@inf.enst.fr> <873ckr979l.fsf@inf.enst.fr> NNTP-Posting-Host: d1.56.bb.d0 X-Server-Date: 10 Apr 2003 12:03:09 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:36045 Date: 2003-04-10T12:03:09+00:00 List-Id: Samuel Tardieu wrote in message news:873ckr979l.fsf@inf.enst.fr... > > I agree, but the RM deliberately ignores such a factor. Otherwise, no > function would ever be Pure in the RM sense, as the omission of the > call would never yield the same "result". > Obviously, as a language standard, it must for the most part ignore time. It can't account for how something gets implemented, so trying to address time becomes problematic. In probably 99.9% of the applications, time doesn't matter, so if a function takes more or less time dealing with the off-nominal case, nobody much cares. But put that call in a selective wait with a delay alternative and suddenly you might see different program behavior if the off-nominal case changes the timing. I just brought it up as a reminder that "no effect" from the ARM perspective is not equivalent to "no observable difference in the real world". The ARM concern is that there be no semantic effect. A call to a deallocate routine with a null pointer might cause the rectal extraction of several flying monkeys, but so long as the program continues to compute what the ARM expects, its happy. :-) MDC -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/ Send Replies To: m c o n d i c @ a c m . o r g "Going cold turkey isn't as delicious as it sounds." -- H. Simpson ======================================================================