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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6b1a1ed8b075945 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Allocators and exceptions Date: Wed, 12 Sep 2007 21:53:24 +0100 Organization: Pushface Message-ID: References: <1189323618.588340.87180@o80g2000hse.googlegroups.com> <1189369871.672082.162750@50g2000hsm.googlegroups.com> <1189460936.295604.143720@r29g2000hsg.googlegroups.com> <1189502377.626510.172690@22g2000hsm.googlegroups.com> <1189601170.835400.72630@w3g2000hsg.googlegroups.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 1189630405 5306 62.49.19.209 (12 Sep 2007 20:53:25 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 12 Sep 2007 20:53:25 +0000 (UTC) Cancel-Lock: sha1:6Vs77BgiZgZqtn+KdENOSBv/xPE= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:1917 Date: 2007-09-12T21:53:24+01:00 List-Id: Maciej Sobczak writes: > What should the constructor do *after* handling the exception? > Leave the object half-baked? I'm not sure exactly what Stephe meant by 'propagate'. It certainly seems a bad idea to allow a Constraint_Error to propagate unhandled. But what would be wrong with dealing with the problem and then raising an appropriate exception from the constructor? (even Constraint_Error if gnat makes sense). --S