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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.33.206 with SMTP id h197mr30761000ioh.9.1438020957233; Mon, 27 Jul 2015 11:15:57 -0700 (PDT) X-Received: by 10.140.109.132 with SMTP id l4mr486341qgf.15.1438020957108; Mon, 27 Jul 2015 11:15:57 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f3no3626557igg.0!news-out.google.com!b31ni862qge.0!nntp.google.com!69no2275700qgl.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Jul 2015 11:15:56 -0700 (PDT) In-Reply-To: <9976ca19-a558-4f4e-80d3-a9b37ee07326@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.203.145.32; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 NNTP-Posting-Host: 81.203.145.32 References: <6b5c318e-430d-4950-9762-e0ecdaa0ac9a@googlegroups.com> <9976ca19-a558-4f4e-80d3-a9b37ee07326@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <40c8dba8-85e9-42e7-8316-96c976531ab4@googlegroups.com> Subject: Re: Handling transactions? From: EGarrulo Injection-Date: Mon, 27 Jul 2015 18:15:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:27042 Date: 2015-07-27T11:15:56-07:00 List-Id: On Monday, July 27, 2015 at 6:38:37 PM UTC+2, David Botton wrote: > EGarrulo, your question is not a language question but a design question.= What you want can be done in any language and depending on what you are tr= ying to "roll back" I can think of many many ways to do it. Be specific and= I'm sure some of us can offer advice for your project. Thank you, but mine is a curiosity. I am new to Ada and I am trying to und= erstand how to approach problems the Ada way. My above hypothetical solut= ion mirrors what I would have done in C++, by following the RAII (Resource = Acquisition Is Initialization) idiom. It seems to me that Ada offers a sim= ilar idiom with its controlled types.