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=0.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HEADER_SPAM,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-ArrivalTime: 2003-06-17 18:38:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uwm.edu!rpi!not-for-mail From: Wesley Groleau Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 17 Jun 2003 21:41:13 -0400 Organization: Ain't no organization here! Sender: cppmods@netlab.cs.rpi.edu Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> <7gBHa.12174$KF1.273806@amstwist00> Reply-To: wesgroleau@despammed.com NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Tue, 17 Jun 2003 12:07:10 -0500 X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPu/DNUHMCo9UcraBAQG3CwH9H8LkFy4fJxj7VSg9kCjOz+nIljjnTZLr BBJZ/RiKsxmhG+BDJOWUaPZYm3VEdxroMB2iu3XXmqsqpSMl50OvbA== =r80h Xref: archiver1.google.com comp.lang.ada:39370 comp.lang.c++.moderated:68583 Date: 2003-06-17T21:41:13-04:00 List-Id: > and not necessarily easier. Garbage collection might make it harder to > manage resources, not easier. It also makes it easier to not think about it, and continue not thinking about it until you find out the hard way in some case that you should have thought about it. > Besides, memory is just one kind of resource, and GC does nothing for > other kinds. .... Like: closing files, decrementing usage counts, flushing file buffers and cached data, commiting or cancelling database transactions, ... That's what's nice about Ada controlled types. You can use them for anything with mandatory finalization, not just GC. I suppose C++ destructors could do the same. [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]