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!newsread.com!news-xfer.newsread.com!nntp.abs.net!ash.uu.net!newsfd02.forthnet.gr!not-for-mail From: Ioannis Vranos Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Fri, 18 Mar 2005 14:39:04 +0200 Organization: FORTHnet S.A., Atthidon 4, GR-17671 Kalithea, Greece, Tel: +30 2109559000, Fax: +30 2109559333, url: http://www.forthnet.gr Message-ID: <1111149550.416474@athnrd02> References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1110377260.350158.58730@z14g2000cwz.googlegroups.com> <1110383768.773379.61780@o13g2000cwo.googlegroups.com> <399tkeF5utki4U1@individual.net> <1110427239.506093.96160@o13g2000cwo.googlegroups.com> <399vgoF5tsn8uU3@individual.net> <1111134127.050469.12930@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: athnrd02.forthnet.gr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: athprx02.forthnet.gr 1111149550 26428 193.92.150.73 (18 Mar 2005 12:39:10 GMT) X-Complaints-To: abuse@forthnet.gr NNTP-Posting-Date: Fri, 18 Mar 2005 12:39:10 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en In-Reply-To: <1111134127.050469.12930@f14g2000cwb.googlegroups.com> Cache-Post-Path: newsfd02!unknown@ppp13-adsl-242.ath.forthnet.gr Xref: g2news1.google.com comp.lang.ada:9592 comp.lang.c++:46257 comp.realtime:1563 comp.software-eng:5149 Date: 2005-03-18T14:39:04+02:00 List-Id: Jerry Coffin wrote: > In fairness, the multi-level goto is marginally more justifiable in > Java than in Ada -- Java copied all of C's biggest mistakes, including > its screwed up switch/case statement. It's quite often useful to have a > switch statement in a loop, and exit the loop as one of the legs of the > switch -- but the screwed-up switch makes this a multi-level break. I think that wanting to break a loop from inside a case block is very rare, after all one places (should place) minimal code in switch cases. On the other hand, although the designers of C#/CLI claimed their switch implementation to be better than C++ (as with every other language detail, they were very excited with C#/CLI in the beginning, they viewed it as a cure-all kind of thing, now they have switched back to C++ as the systems programming language of .NET), I think it is inferior. It goes with something like this if you want to use more than one cases: switch(value) { case 1: { // ... goto case 2; } case 2: { // ... } case 3: { // ... } } with implicit breaks among cases. Personally I do not like this goto stuff. -- Ioannis Vranos http://www23.brinkster.com/noicys