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!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Jerry Coffin" Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 9 Mar 2005 20:00:39 -0800 Organization: http://groups.google.com Message-ID: <1110427239.506093.96160@o13g2000cwo.googlegroups.com> 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> NNTP-Posting-Host: 70.33.25.135 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1110427243 19135 127.0.0.1 (10 Mar 2005 04:00:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Mar 2005 04:00:43 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=70.33.25.135; posting-account=mZiOqwwAAAC5YZsJDHJLeReHGPXV5ENp Xref: g2news1.google.com comp.lang.ada:9001 comp.lang.c++:44898 comp.realtime:1177 comp.software-eng:4740 Date: 2005-03-09T20:00:39-08:00 List-Id: Wes Groleau wrote: [ ... ] > Or (for nested loops), each loop can have a name, > and the exit statement can exit out of two or more nested > loops by using the name of the level to get out of. > > Java has a construct that can do something like that. > Does C++ ? Thankfully, no. IMO, both Java and Ada would be improved by elimination of this misfeature. Even though C++'s 'break' is simpler, I'd say less than 10% of the time I see it used to exit loops is justified. That's not to say that there's NO good use for it, only that it's used FAR more often than justified. -- Later, Jerry. The universe is a figment of its own imagination.