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.5 required=5.0 tests=BAYES_00,FROMSPACE, FROM_ADDR_WS,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7675210751e9faaa X-Google-Attributes: gid103376,public From: " "@deneb.cygnus.argh.org (Florian Weimer) Subject: Re: Handling exceptions to create an atomic operation Date: 1999/12/12 Message-ID: <87so18juti.fsf@deneb.cygnus.argh.org>#1/1 X-Deja-AN: 559657723 References: <87r9h2ecol.fsf@deneb.cygnus.argh.org> Mail-Copies-To: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.argh.org X-Trace: deneb.cygnus.argh.org 944995897 8648 192.168.1.2 (12 Dec 1999 10:51:37 GMT) Organization: Penguin on board User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.4 Mime-Version: 1.0 NNTP-Posting-Date: 12 Dec 1999 10:51:37 GMT Newsgroups: comp.lang.ada Date: 1999-12-12T10:51:37+00:00 List-Id: Robert A Duff writes: > " "@deneb.cygnus.argh.org (Florian Weimer) writes: > > > An operation which internally creates several objects should appear to > > the caller as one operation which can either complete fail or succeed. > > Consider using controlled types. Something like the C++ auto_ptr template? This sounds like a good suggestion. In fact, the code looks much cleaner now. Thanks. Limited types, however, seem to be a bit difficult to handle this way. It's probably more reasonable to hack FLORIST to use controlled types than to play with Unrestricted_Access (or even Unchecked_Access)...