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,2cb1f0b6d642e1dc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Pascal Calling Convention Date: Sun, 27 Mar 2011 12:18:20 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <9b04626e-567d-408c-aab3-39b964b3ffd6@l2g2000prg.googlegroups.com> <87y641vabt.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1301242700 4630 192.74.137.71 (27 Mar 2011 16:18:20 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 27 Mar 2011 16:18:20 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:1ujCuLwc9NvBrbdX1fS1Fba1KfU= Xref: g2news2.google.com comp.lang.ada:19468 Date: 2011-03-27T12:18:20-04:00 List-Id: Florian Weimer writes: > But there is undefined behavior because the standard says so, and > undefined behavior because it's not specified at all (perhaps > accidentally). "Erroneous execution" doesn't suffer from this > problem. I don't see the difference. How do you know I didn't leave out something important when I wrote some part of the Ada RM? Of course, I tried not to, and I'm sure people writing the C standard did, too. Of course, there are always things outside the standard. Neither C nor Ada standard will tell you what happens if you run your program under a debugger, and modify a constant while stopped at a breakpoint. Or stop a program that is in the middle of doing "delay X;". Or what happens if you unplug the computer while running a C or Ada program. - Bob