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,7fcf9180e7ba7ab1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!u-picardie.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: A suggestion for resource management Date: Mon, 23 Aug 2010 18:37:00 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <8762z4gcoi.fsf@mid.deneb.enyo.de> <8darikF1b0U1@mid.individual.net> <87eidr3cje.fsf@mid.deneb.enyo.de> <4c710ab7$0$6882$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1282606624 31767 69.95.181.76 (23 Aug 2010 23:37:04 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 23 Aug 2010 23:37:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-RFC2646: Format=Flowed; Response Xref: g2news1.google.com comp.lang.ada:13685 Date: 2010-08-23T18:37:00-05:00 List-Id: "Georg Bauhaus" wrote in message news:4c710ab7$0$6882$9b4e6d93@newsspool2.arcor-online.net... ... > Scope(whatever) ...; looks like a solution typical of {} languages: > compare its "flexibility" with the "flexibility" of goto in C and Ada, > respectively. I find it too compiler-writer-oriented, and somewhat > ad hoc in use. How can it be bridled? I agree, but I don't think it is "compiler-writer-oriented", because it doesn't fit into the things an Ada compiler is already doing. Which means it would be a massive new mess, unless it was implemented in terms of existing things. I'd probably implement it with an anonymous controlled object having the procedure call (conditionally) called from the Finalize routine. Probably would be a lot more expensive than just doing it right (using controlled types). Moreover, using pragmas for dynamic content is really an abuse of the concept, IMHO. The fact that the concept has been abused in the past doesn't make it OK to abuse it more. Randy.