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=ham 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-ArrivalTime: 2003-06-19 16:33:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!cycny01.gnilink.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030611 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: C bug of the day References: <1054751321.434656@master.nyc.kbcfp.com> <7gBHa.12174$KF1.273806@amstwist00> <7RQHa.3141$Uh2.339@nwrdny01.gnilink.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 19 Jun 2003 23:33:13 GMT NNTP-Posting-Host: 162.83.242.96 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1056065593 162.83.242.96 (Thu, 19 Jun 2003 19:33:13 EDT) NNTP-Posting-Date: Thu, 19 Jun 2003 19:33:13 EDT Xref: archiver1.google.com comp.lang.ada:39464 Date: 2003-06-19T23:33:13+00:00 List-Id: Dmitry A. Kazakov wrote: > They do require "inheritance". That special controlled type is called > "class" in C++. You cannot have a destructor for, say, "char *" (you cannot > even derive from it). No. You cannot write a destructor for 'char *' because that is a system type, and it already has one. Every built-in type has one. If you want to write a destructor, it has to be for a type you define. Having to inherit from a special type to get finalization is especially cumbersome in a language which does not have multiple inheritance.