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,c80e6f742e73478f 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!feeder.news-service.com!news.mixmin.net!news.tornevall.net!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Ensuring postconditions in the face of exceptions Date: Sun, 14 Mar 2010 11:57:53 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <820d96c0-5d67-4b8c-8c5b-811ca4f1127e@g26g2000yqn.googlegroups.com> <8990d686-f703-4e9c-91b7-32410289983d@g11g2000yqe.googlegroups.com> <87ljdv56gy.fsf@ludovic-brenta.org> NNTP-Posting-Host: d0388cb50fa26e291a51d4473c90c3da Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 16aa1d4ec6316b373eda722c2eb857c6 X-Complaints-To: abuse@tornevall.net X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <87ljdv56gy.fsf@ludovic-brenta.org> X-Validate-Post: http://news.tornevall.net/validate.php?trace=16aa1d4ec6316b373eda722c2eb857c6 X-SpeedUI: 1738 X-Complaints-Italiano: Parlo la lingua non � italiano User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:10535 Date: 2010-03-14T11:57:53-07:00 List-Id: Ludovic Brenta wrote: > > That's an interesting suggestion but we've patched the run-time library > so that it dumps core on every exception; we use exceptions only for > exceptional situations and dumping core freezes the system for 30 > seconds to produce a file roughly 300 MiB in size. So I would rather > not raise exceptions that are do not detect a bug. Let me see if I understand this correctly: Visit raises an exception, which freezes the system for 30 s and writes a large file. Then you handle the exception, assign to Dirty, and re-raise the exception, again freezing the system and writing the file. Is that how this is expected to work? -- Jeff Carter "We'll make Rock Ridge think it's a chicken that got caught in a tractor's nuts!" Blazing Saddles 87