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,21960280f1d61e84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps90.POSTED!023a3d7c!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: How come Ada isn't more popular? References: <1169636785.504223.139630@j27g2000cwj.googlegroups.com> <45b8361a_5@news.bluewin.ch> <3pejpgfbki.fsf@hod.lan.m-e-leypold.de> From: Ray Blaak Organization: The Transcend Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 06 Feb 2007 17:47:25 GMT NNTP-Posting-Host: 208.66.252.228 X-Trace: edtnps90 1170784045 208.66.252.228 (Tue, 06 Feb 2007 10:47:25 MST) NNTP-Posting-Date: Tue, 06 Feb 2007 10:47:25 MST Xref: g2news2.google.com comp.lang.ada:9029 Date: 2007-02-06T17:47:25+00:00 List-Id: Maciej Sobczak writes: > OK. What about refcounting with smart pointers? This form of GC actually works against your determinism goal. It simply is a poor form of GC, can't handle cycles, and has unpredictable execution times. A "real" GC smoothes out the collection costs. But your main points of needing scoped-based resource control I indeed agree with. My thing is convenience: sometimes that is simple wrappers with destructors to cleanup after any possible scope exit, sometimes that is the "WithResource" wrapper function pattern. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.