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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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-ArrivalTime: 2003-06-19 18:18:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.gbronline.com!news.gbronline.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 19 Jun 2003 20:18:00 -0500 Date: Thu, 19 Jun 2003 20:18:45 -0500 From: Wesley Groleau Reply-To: wesgroleau@despammed.com Organization: Ain't no organization here! User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en, es-mx, pt-br, fr-ca 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: NNTP-Posting-Host: 216.117.18.79 X-Trace: sv3-brDCwZhtEP8TGQPAKhCLiEC0P2KG5KpiTfqGOtm2jzdodVsAI5BXxqOU6j3EwHyZ55s8GG7PDur7prj!BYNILdeosHvm2arezObV9xv9z5NokyeH8d2saVvA/YDM64RZtL133Dx1aJt1KcXwvQ0egVMSq4Zm!JDLp X-Complaints-To: abuse@gbronline.com X-DMCA-Complaints-To: abuse@gbronline.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:39468 Date: 2003-06-19T20:18:45-05:00 List-Id: Hyman Rosen wrote: > 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. >