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,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.cs.univ-paris8.fr!talisker.lacave.net!lacave.net!feeder.xsnews.nl!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-Id: <1670981.FVEGFJdMsk@linux1.krischik.com> From: Martin Krischik Subject: Re: C++ language support. Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Date: Tue, 29 Mar 2005 17:13:37 +0200 References: <422edaec$0$26554$9b4e6d93@newsread4.arcor-online.net> <1111464133.508323@athnrd02> <423fe9df$0$11476$9b4e6d93@newsread2.arcor-online.net> <1111521825.653841@athnrd02> <424094b0$0$11481$9b4e6d93@newsread2.arcor-online.net> <1111568404.687226@athnrd02> <42416659$0$11476$9b4e6d93@newsread2.arcor-online.net> <1111611226.253249@athnrd02> <4241f47a$0$24073$9b4e6d93@newsread4.arcor-online.net> <1111627358.387482@athnrd02> <424222df$0$24057$9b4e6d93@newsread4.arcor-online.net> <1111632436.374702@athnrd02> <1111698643.735412.144620@l41g2000cwc.googlegroups.com> <424362cc$0$11478$9b4e6d93@newsread2.arcor-online.net> <1111717144.891831@athnrd02> <42446836$0$11463$9b4e6d93@newsread2.arcor-online.net> <2111367.VocJdu5gKQ@linux1.krischik.com> <1877170.EimaI4BZ9C@linux1.krischik.com> <42491aa1.695350875@news.individual.net> User-Agent: KNode/0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com Organization: Surfino Gmbh NNTP-Posting-Host: 83.169.175.19 (83.169.175.19) NNTP-Posting-Date: Tue, 29 Mar 2005 18:00:37 +0200 X-Trace: 5b5a842497ba5f60c0ab614957 Xref: g2news1.google.com comp.lang.ada:10122 comp.lang.c++:47798 comp.realtime:1813 comp.software-eng:5455 Date: 2005-03-29T17:13:37+02:00 List-Id: Alf P. Steinbach wrote: > * Martin Krischik: >> >> The last fix I did was "throw ( ... )" - IBM accepts it. MS even warns >> you about missing features if you try anthing else. > "throw (...)" is not standard C++ syntax. I did say that a few lines later. It's actually down there is the quote: >> The GNU compiler immediately moaned about it. I checked the ISO standard >> and hey "throw ( ... )" isn't part of the ISO standart. You never stop >> learning! >> >> So I changed to "throw ( std::exeption )" knowing that this will result >> in warnings in MS-C++ (and splint and pc-lint for that matter). > > Why not "throw std::exception();", or, if you're rethrowing, "throw;". You missunderstood. I speak about: void f () throw (std::exception) { .... } as stated in ISO/IEC14882(15.4). I know it's one of the C++ features which are seldomly used and using it is an uphill struggle - just like using const was when it first appeared. But that never stops me. With Regards Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com