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,9d929352a358ccab X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: Ada to C++ translator Date: 26 Jan 2006 10:29:19 -0800 Organization: http://groups.google.com Message-ID: <1138300159.101848.70040@g43g2000cwa.googlegroups.com> References: <1138132539.577082.206380@g43g2000cwa.googlegroups.com> <87zmlkoz4k.fsf@mid.deneb.enyo.de> <877j8oow1r.fsf@mid.deneb.enyo.de> <877j8ngrnx.fsf@mid.deneb.enyo.de> <3886621.UJpj9E84qJ@linux1.krischik.com> NNTP-Posting-Host: 192.35.35.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1138300164 2911 127.0.0.1 (26 Jan 2006 18:29:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Jan 2006 18:29:24 +0000 (UTC) In-Reply-To: <3886621.UJpj9E84qJ@linux1.krischik.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=192.35.35.35; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news1.google.com comp.lang.ada:2657 Date: 2006-01-26T10:29:19-08:00 List-Id: Martin Krischik wrote: > Florian Weimer wrote: > > > * Randy Brukardt: > > > >> "Florian Weimer" wrote in message > >> news:877j8oow1r.fsf@mid.deneb.enyo.de... > >> ... > >>> It's an abort-deferred operation (like assignment, which I should have > >>> mentioned as well). > >> > >> That's expensive how? Abort-deferral is (or should be) just toggling a > >> bit in the TCB. > > > > You need to find the TCB first, and you need to check for abortion > > once deferral has ended. Especially the first part probably prevents > > inlining on some POSIX platforms. > > Well any good destructor in virtual anyway - and as such not to be inlined. > Yes C++ supports virtual inline - but virtual inline make linking an > interesting experience. > > Please no toy programs to prove me wrong! I am talking dozens of DLLs, > hundreds of modules, thousends of functions and then: > > Linker Error: Function _v_Whatever_Wherever_fg7IStringiil not found. > > or worse: > > Linker Error: Duplicate Function _v_Whatever_Wherever_fg7IStringiil > > Martin > -- > mailto://krischik@users.sourceforge.net > Ada programming at: http://ada.krischik.com I don't think your wrong. Linker errors can be frustating, especially with large projects. I disagree, though, that all "good" destructors are necessarily virtual. None of the destructors for standard containers are virtual, nor do I think they need to be. Not all classes need to be polymorphic.