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: a07f3367d7,5af5c381381ac5a7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!193.190.198.58.MISMATCH!aotearoa.belnet.be!news.belnet.be!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Newsgroups: comp.lang.ada Subject: Re: Ada requires too much typing! References: <03f84a0a-e070-43a9-9b68-920345f64f94@r27g2000yqb.googlegroups.com> Date: Mon, 07 Jun 2010 17:00:13 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Martin Krischik" Organization: Martin Krischik, Softwareentwicklung Message-ID: User-Agent: Opera Mail/10.53 (MacIntel) NNTP-Posting-Host: 89.236.175.138 X-Trace: news.sunsite.dk DXC=Jgo0QE:A_aT5dE91CT5^XYYSB=nbEKnk[TL\TU_9UQm^IDiY_4:UK?Sd3Nai^>E:QM5T2e^5VLiC>9VUmbeh]\6j0Y X-Complaints-To: staff@sunsite.dk Xref: g2news2.google.com comp.lang.ada:12401 Date: 2010-06-07T17:00:13+02:00 List-Id: Am 07.06.2010, 14:17 Uhr, schrieb Maciej Sobczak : > It looks like virtual destructors amount for some 20-30% of all in my > code. Now that is interesting. It means that most of your classes are final as the java guys would say. While I have always written under the premises that my classes might become child classes for something else. BTW: you are aware that if the parent class uses a virtual destructor then the child class does as well - even when not explicitly specified? > then you are probably trying to write Java in C++. I learned C++ before Java using IBM Open Class Library «http://en.wikipedia.org/wiki/IBM_Open_Class». Probably more then anything the OCL influenced my OO thinking. A string class with lazy copy, a great collection class which (optionality) implemented the observer notifier pattern, a database persistence object layer. Well and 90% of the classes descending form IVBase. Guess what the V stands for. There is a class overview here http://www.warpspeed.com.au/cgi-bin/inf2html.cmd?..%5Chtml%5Cbook%5CIBMVACPP%5CCPPCLRF.INF or here: http://caligari.dartmouth.edu/doc/ibmcxx/en_US/doc/hgref.htm And yes the OCL shares a lot with Java. The single base class for example, or a toString method for every class, or the use of interfaces. Martin -- Martin Krischik mailto://krischik@users.sourceforge.net https://sourceforge.net/users/krischik