Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: "Nearly a quarter-century later, why is C++ still so popular?" Date: Tue, 27 Jul 2021 14:23:10 -0700 Organization: None to speak of Lines: 27 Message-ID: <871r7jih8h.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="a7fd05aa44f85d437cfb30de78c75b84"; logging-data="30319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MoOLPKhwK4QtSAioQ71jL" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:vTkBa23VkydmxHl9rUe5t7zrfdY= sha1:07GXSEcemPGGtWNaCSO5rypZQS8= Xref: csiph.com comp.lang.c++:80747 Vir Campestris writes: > On 27/07/2021 21:48, Siri Cruise wrote: >> In article , >> Lynn McGuire wrote: >> >>> Because it just works ? >> Because too many people still think garbage collection is >> inefficient, and they can do better. See also Apple's dependence >> on reference counting and thus the inability to do generic graph >> data structures. >> Object oriented programming and closures without mark/sweep >> collection is a bloody pain in the nethers. Hence C++ and its >> eternally broken finalisers. >> > But C++ doesn't have finalisers. That's a feature of GC languages. > > Did you mean C#? C++ has destructors. I suspect that's what Siri Cruise was referring to. Saying that garbage collection is a substitute for destructors suggests that memory is the only resource that needs to be managed. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */